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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
rendiyan
Partner - Creator
Partner - Creator

[ASK] sum total not show

Dear Qlik Master,

I have a req that need to split dimension into 2 chart using calculated dimension, and have to calculate actual value of 1 dimension to compare to another dimension.

simulation like below :

Untitled.png

My calculated condition for above screenshot is :

if([Group Lv1]='REVENUES' or [Group Lv1]='COST OF REVENUES',[Group Lv1])

And my actual rev expression is :

Sum(TOTAL<YEAR>

{<

  YEAR={'$(=$(vMaxYear))'},

  [PL Group Lv1]={'REVENUES'}

>}

MOVEMENT_BALANCE)

For above screenshot there is no issue, but when i create my second chart with different definition of dimension, my actual rev doesn't show up.

Screenshot is below :

Untitled.png

my calculated dimension condition for above (second screenshot) is :

if([Group Lv1]='OPERATING EXPENSES',[Group Lv1])



For my both chart, i use suppress when value is null.

But my actual rev doesn't show up in my second chart.

Is there any solution?



Thank You,

Best Regards,

13 Replies
rendiyan
Partner - Creator
Partner - Creator
Author

i've awared that if i use no calculated dimension, it will work just fine.

But the requirement makes me have to split my chart.

And that's when my sum total doesn't show up.

rendiyan
Partner - Creator
Partner - Creator
Author

works like charm.

But there's one curiousity.

In your expression, my formula is multiply to yours : Avg({<[Lv 1] = {'OPERATING EXPENSES'}>}1)

and what's that for?

Thank You

sunny_talwar

If I remove that, you will see two rows

Capture.PNG

You can use an if statement to do that same thing.

If([Lv 1] = 'OPERATING EXPENSES', Sum(TOTAL<YEAR>{<YEAR={'2016'}, [Lv 1]={'REVENUES'}>}Actual))

But I prefer using expressions without if statements and that's why multiply with that expression

rendiyan
Partner - Creator
Partner - Creator
Author

nice explanation.

thank you a lot Sunny