Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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
Luminary Alumni
Luminary Alumni

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
Luminary Alumni
Luminary Alumni

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
Luminary Alumni
Luminary Alumni

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
Luminary Alumni
Luminary Alumni

Hi,

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

Regards,

Jagan.