Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
i have these 2 simple DAX Measures, with which I'm trying to calculate the percentage of each category. Therefore I use the All Function, but somehow it only works if I use the "criteriaID" instead of only "criteria".
All Column not working = CALCULATE([Invoice Category], ALL( AnalysisOfInvoiceTypesHistorie[criteria]))
All Column working = CALCULATE([Invoice Category], ALL( AnalysisOfInvoiceTypesHistorie[criteriaID]))
Does anybody have an idea on this ? I was thinking of the length of criteria?!
Thanks for any hint 🙂
Solved! Go to Solution.
Try it this way, include the key in ALL,
All Column = CALCULATE([Invoice Category], ALL( AnalysisOfInvoiceTypesHistorie[criteria]),
AnalysisOfInvoiceTypesHistorie[criteriaID]))
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon on the right if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Try it this way, include the key in ALL,
All Column = CALCULATE([Invoice Category], ALL( AnalysisOfInvoiceTypesHistorie[criteria]),
AnalysisOfInvoiceTypesHistorie[criteriaID]))
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon on the right if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi @mantaga
just wondering, is AnalysisOfInvoiceTypesHistorie[criteria] sorted by AnalysisOfInvoiceTypesHistorie[criteriaID] in your model?
Cheers,
Sturla
@sturlaws good point - yes that's the case...
Why does this sort by value prevent the all function to work ?
Thanks!
@mantaga , You can try
CALCULATE([Invoice Category], allcrossfiltered( AnalysisOfInvoiceTypesHistorie))
CALCULATE([Invoice Category], ALL( AnalysisOfInvoiceTypesHistorie)) //
How to use allcrossfiltered and removefilters
https://www.linkedin.com/pulse/five-recent-power-bi-functions-you-should-use-more-often-amit-chandak
Hi @mantaga ,
Just use this measure
ALL Values = CALCULATE([Invoice Category], ALL( AnalysisOfInvoiceTypesHistorie)
Regards,
Harsh Nathani
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |