Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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 :
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 :
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,
If I remove that, you will see two rows
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
what expression you have used for 2nd chart
Would you be able to share a sample to test this out?
Change calculation to this maybe.
Sum(TOTAL<YEAR>
{<
YEAR={'$(=$(vMaxYear))'},
[PL Group Lv1]={'OPERATING EXPENSES'}
>}
MOVEMENT_BALANCE)
Dear Shraddha,
My expression for second chart is the same as my first one.
Sum(TOTAL<YEAR>
{<
YEAR={'$(=$(vMaxYear))'},
[PL Group Lv1]={'REVENUES'}
>}
MOVEMENT_BALANCE)
Hi Staffan,
The objection why i show Actual Rev is to calculate every actual of each group to actual of revenue.
So the general formula is :
[Actual of each Group] / [Actual of Group Revenue]
Thank You
Hi Sunny,
PFA.
Thank You
sum({<[Group Lv1]={'OPERATING EXPENSES'}>}MOVEMENT_BALANCE)/Sum(TOTAL<YEAR> < YEAR={'$(=$(vMaxYear))'}, [PL Group Lv1]={'REVENUES'}, >} MOVEMENT_BALANCE)
And no calculated Dimension, just [PL Group Lv1]
Try
sum({1<YEAR= {'2016'},[PL Group Lv1]={'REVENUES'}} MOVEMENT_BALANCE)
with hardcoded Year then substitute with variable.
Try this
Dimension
Lv 1
Expression
Sum({<[Lv 1] = {'OPERATING EXPENSES'}>}Actual)
Sum(TOTAL<YEAR>{<YEAR={'2016'}, [Lv 1]={'REVENUES'}>}Actual) * Avg({<[Lv 1] = {'OPERATING EXPENSES'}>}1)