Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have created a measure to SUM the TotalValue per Region but agreggate by SUM the regions with the same Indicator.
MeasureWithProblem = CALCULATE(SUM(Table[TotalSale]); ALLEXCEPT(Table; Table[Indicator]))
Like the following image:
The measure really SUM the TotalValues when Indicator is equal, but if select one month on slicer the measure ignore the month too, like the following:
As you can see, the "MeasureWithProblem" always returns 255 for East and West when the correct is 85 when "feb" is selected.
Here a sample of data:
Region | TotalSale | Indicator | Month |
South | 10 | 0 | jan |
North | 15 | 1 | jan |
West | 20 | 2 | jan |
East | 25 | 2 | jan |
South | 30 | 0 | feb |
North | 35 | 1 | feb |
West | 40 | 2 | feb |
East | 45 | 2 | feb |
South | 50 | 0 | mar |
North | 55 | 1 | mar |
West | 60 | 2 | mar |
East | 65 | 2 | mar |
Hello @gluizqueiroz
ALLEXCEPT(Table; Table[Indicator]))
Tells DAX to remove the filters from every column of Table except [indicator] so it is removing the filter on data even when you slice on a month. Because the indicator is in your visual you should be able to use just
SUM(Table[TotalSale])
and get the anwer you are looking for.
Hey @jdbuchanan71
I already tried the simple SUM and it doesn't agreggate by sum where the Indicator column is equal
@gluizqueiroz So I guess you want to sym by indicator regardless the region difference right? If yes, try this one:
User | Count |
---|---|
141 | |
113 | |
104 | |
78 | |
64 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |