Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello community I am learning DAX new recently
I have a question about ignoring a calculation based on the filter criteria
As you can see on the picture the market shares are calculated correctly.
When I select Brand a it shows me 100% but I want it to show me 35% like in the first picture.
I would be very happy about an answer
Solved! Go to Solution.
How about something simpler?
CALCULATE (
SUM ( 'DataTable'[Sales] ),
ALL ( 'DataTable'[Brand] )
)
Hi @ys034
Have you tried Alexis's formula for Grand Total? It should work I think.
Best Regards,
Community Support Team _ Jing
@ys034 , For grand total you might have created a measure
calculate([Measure], allselected())
Use all in place of that
calculate([Measure], all())
or
calculate([Measure], all(TableName))
My Measure:
How about something simpler?
CALCULATE (
SUM ( 'DataTable'[Sales] ),
ALL ( 'DataTable'[Brand] )
)
@ys034 , Try like
Grand Total Sales = CALCULATE(SUMX(VALUES('DataTable'),'DataTable'[Sales]),filter(ALL('DataTable'), 'DataTable'[Date].[Year] = max('DataTable'[Date].[Year])),FILTER(ALLSELECTED('DataTable'),'DataTable'[Country] = MAX('DataTable'[Country])),ALL())
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 9 | |
| 8 | |
| 8 |