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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Rajitha1
Contributor III
Contributor III

How to do ALLEXCEPT function in qlik sense

I need to replicate below dax query in qlik sense

AGC per Mt = sum('PROFIT_AND_LOSS_TGT (IFFCO)_Mig'[Gross Contribution Per Mt])/calculate(sum('PROFIT_AND_LOSS_TGT (IFFCO)_Mig'[Gross Contribution Per Mt]),ALLEXCEPT('PROFIT_AND_LOSS_TGT (IFFCO)_Mig','PROFIT_AND_LOSS_TGT (IFFCO)_Mig'[Gross Contribution Per Mt]))
Labels (1)
2 Replies
Rajitha1
Contributor III
Contributor III
Author

Can anyone help me regarding this.

 

MayilVahanan
MVP
MVP

Hi

Try like below

sum([Gross Contribution Per Mt])/sum({1<[Gross Contribution Per Mt] =p ([Gross Contribution Per Mt])>}[Gross Contribution Per Mt])

Above exp, ignores all the selections and include only the possible values for the selections. Hope it helps.

In order to ignore all the fields, we are using {1}, however if want to ignore only certain fields, we can use

City=, Country=
Ex:
sum({1<[Gross Contribution Per Mt] =p ([Gross Contribution Per Mt]), City=, Country=>}[Gross Contribution Per Mt])

If you want to ignore by table wise, I hope, you need to mention all the fields like above. 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.