Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

conditional if else?

I am new to Qlikview and I hope somebody can help me...

i wanted to create a bar chart with dimension called Region ( East, West, North South )

and each region in the bar chart will display the total amount of money ( Net Order Value ) which was late in payment for more than 7 days (Invoiced_Days)

Dimension -> Region

Expression --> If(Invoiced_Days > 7,Sum([Net Order Value]),0)

but my dashboard indicate no data to display


pls assist. thanks

Remy.

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Try this

Sum({<Invoiced_Days = {">7"}>}[Net Order Value])


You might like reading

Set Analysis: syntaxes, examples

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

11 Replies
vinieme12
Champion III
Champion III

Try this

Sum({<Invoiced_Days = {">7"}>}[Net Order Value])


You might like reading

Set Analysis: syntaxes, examples

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
chrismarlow
Specialist II
Specialist II

Have you tried popping the If inside the sum;

Sum(If(Invoiced_Days > 7,[Net Order Value],0))

Anonymous
Not applicable
Author

you first need to define net order value and then sum..so use this expression

=sum(if(Invoiced_Days > 7,[Net Order Value]))

vinieme12
Champion III
Champion III

why would you not prefer using Set Analysis?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Not applicable
Author

thank you for your assistance. it worked 🙂

Not applicable
Author

i am still new to qlikview and trying to look at the various ways of doing this 🙂

and it seem like set analysis are the way to go. I really appreciate the assistance rendered.

thanks

Not applicable
Author

thank you for your assistance. this worked too 🙂

oknotsen
Master III
Master III

If your question is now answered, please flag the Correct Answer (via the big "Correct Answer" button near every post).

If not, please make clear what part of this topic you still need help with .

May you live in interesting times!
vinieme12
Champion III
Champion III

Glad to help ☺

Cheers

V

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.