Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Qliker,
Nullification isn't working in my expression. The output of the expression is working as expected but I need to nullify a field.
Following is my expression:
sum({<Header=>}
Aggr(
if("Green_Ind" = '≤' and [Scored? (Y/N)]='Y' and sum({<Header=>}Deno) <> '0',
if(sum({<Header=>}Numerator)/sum({<Header=>}Deno/Divisor) <= avg({<Header=>}"Green"),1),
if("Green_Ind" = '≥' and [Scored? (Y/N)]='Y' and sum({<Header=>}Deno) <> '0',
if(sum({<Header=>}Numerator)/sum({<Header=>}Deno/Divisor) >= avg({<Header=>}"Green"),1)))
,Header,[Measure Title],KPI))
A doubt, can I nullify the field which is been used to aggregate the data?
Regards,
Mohan
So, all you want is to ignore selection in Header field? Try this
count({<Header=>}
Aggr(
if(only({<Header=>}"Green_Ind") = '≤' and only({<Header=>}[Scored? (Y/N)])='Y' and sum({<Header=>}Deno) <> '0',
if(sum({<Header=>}Numerator)/sum({<Header=>}Deno) <= avg({<Header=>}"Green"), Only({<Header>}[Measure Title])),
if(only({<Header=>}"Green_Ind") = '≥' and only({<Header=>}[Scored? (Y/N)])='Y' and sum({<Header=>}Deno) <> '0',
if(sum({<Header=>}Numerator)/sum({<Header=>}Deno) >= avg({<Header=>}"Green"),Only({<Header>}[Measure Title]))))
,Header,[Measure Title],KPI))
Hi Qliker,
Do we have any help..!!!
Nullify? What exactly are you trying to nullify here? I am not entirely sure I understand
Hi Sunny,
I wanted to make the expression static when the user select "Header" field. So I have included the field disabling function as you could see in my expression {<Header= >}.
Even after I added the field as mentioned above, the "Header" field is interacting with the chart.
Regards,
Mohan
In addition to the above, did you try to remove Header from the list of Aggr() dimensions?
Hi Vegar,
I tried it as you suggest but there is no luck..
I have attached the sample application so you could understand the expression better...
Hi jonty,
You are correct the Header isn't required in Aggr()..
Thank you..!!
Regards,
Mohan
Nope... It all same even after removing the "Header" field from the expression.