Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |