Forum Discussion
ys034
Helper I
4 years agoCalculation should not change during specific filter selection
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 correctl...
- 4 years ago
How about something simpler?
CALCULATE ( SUM ( 'DataTable'[Sales] ), ALL ( 'DataTable'[Brand] ) )
ys034
Helper I
4 years agoMy Measure:
Grand Total Sales = CALCULATE(SUMX(VALUES('DataTable'),'DataTable'[Sales]),filter(ALLSELECTED('DataTable'), 'DataTable'[Date].[Year] = max('DataTable'[Date].[Year])),FILTER(ALLSELECTED('DataTable'),'DataTable'[Country] = MAX('DataTable'[Country])),ALLSELECTED())
This is my new measure but it doesn't work. Any other ideas?
AlexisOlson
Super User
4 years agoHow about something simpler?
CALCULATE (
SUM ( 'DataTable'[Sales] ),
ALL ( 'DataTable'[Brand] )
)