Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Qvmaster2019
Creator
Creator

Simple Set Analysis Question

I am trying to run simple set analysis with two dimensions (Metric Name and Workweek). The logic is that :

If the Metric Name is "TOTAL Invoice Amount Paid", it should sum up all the total of specific 3 metrics but for some reason, it can't.

Please see attached.


1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this,

=if([Metric Name]='TOTAL Invoice Amount Paid',

sum({<[Metric Name]={'Amount Invoice #1 - Paid ($K)','Sum of Invoice #2 - Paid ($K)','Invoice #3 - Paid ($K)'}>} TOTAL<Summary_Week> [TotalValue])+ 1,

Sum([TotalValue]))

Regards,

Jagan.

View solution in original post

5 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this expression it works.

=if([Metric Name]='TOTAL Invoice Amount Paid',

sum({<[Metric Name]={'Amount Invoice #1 - Paid ($K)','Sum of Invoice #2 - Paid ($K)','Invoice #3 - Paid ($K)'}>} TOTAL [TotalValue])+ 1,

Sum([TotalValue]))

Hope this helps you.

Regards,

Jagan.

Qvmaster2019
Creator
Creator
Author

Hi Jagan,

Thanks for your reply.

This will not hold true if I have other workweek.

Regards,

dnatividad

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this,

=if([Metric Name]='TOTAL Invoice Amount Paid',

sum({<[Metric Name]={'Amount Invoice #1 - Paid ($K)','Sum of Invoice #2 - Paid ($K)','Invoice #3 - Paid ($K)'}>} TOTAL<Summary_Week> [TotalValue])+ 1,

Sum([TotalValue]))

Regards,

Jagan.

Qvmaster2019
Creator
Creator
Author

Thanks Jagan!

Really appreciate your help.

Have a nice day, sir!

jagan
Partner - Champion III
Partner - Champion III

Hi,

Mark this Post as Answered, if it fixes your problem.

Regards,

Jagan.