Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello guys
I am new to qlik, can someone help me to find what is wrong in my expression:
I am trying to sum earnings for certain Categories plus null values. thanks for helping
=IF(
ISNULL (ContractCategoryGroup), Sum(${<ISNULL (ContractCategoryGroup)>} Round ((Earnings), -5)/1000000),
IF(
ContractCategoryGroup = {'Features', 'Dramatic', 'Commercials'}, Sum({$<ContractCategoryGroup = {'Features', 'Dramatic', 'Commercials'}>} Round ((Earnings), -5)/1000000)
)
)
The best way would be to create a new flag in the script like this
If(Len(Trim(ContractCategoryGroup)) = 0 or Match(ContractCategoryGroup, 'Features', 'Dramatic', 'Commercials'), 1, 0) as ContractCategoryGroupFlagand then this
Sum({$<ContractCategoryGroupFlag = {1}>} Round(Earnings, -5)/1000000)
I am so sorry but where I should create flag?
If(Len(Trim(ContractCategoryGroup)) = 0 or Match(ContractCategoryGroup, 'Features', 'Dramatic', 'Commercials'), 1, 0) as ContractCategoryGroupFlag
In the script
are you saying under measures field
No my friend, in place where you modify script (back end)
thank you for helping me. I don't have script because under data I have sql query