Hi
I need some help with a DAX measure that removes one filter while keeping another filter both on the same table.
The datamodel is about 6 companies each having multiple locations in different municipalities. And each location has a particular capacity. The size of an organisation is the sum of the capacity of all its locations.
In my report I have a dynamic ranking, showing the Top 5 or Top 3 companies in size, depending on whether the user has selected a particular municpality or not (Top 5 when no municipalities are selected and the entire country is shown and Top 3 when one or more municpalities are selected).
Therefore the Organisations table is filtered in two ways:
- Ranking or not within Top 5 or within Top 3
- The selected municpalities in the slicer
I would like to calculate the marketshare in the selected area (either one or more municipalities or the entire country when no municipalities are selected).
Therefore I need to remove the filter that determines to show or hide a particular organisation in the Top N Bar chart. And at the same time I need to keep the filter resulting from the selected municpalities, in order to divide the capacity of the organisatie in the selected area by the entire capacity in the selected area.
I tried with ALL, REMOVEFILTER and KEEPFILTER, but I cannot figure out how to keep one filter and remove the other at the same time on the same table
Any help is appreciated.
Marketshare.pbix (36.5 KB)