cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
darko861
Resolver II
Resolver II

Filtering Matrix by slicer

Hi community,

 

I'm trying to filter the matrix based on a filter condition set by a slicer.

 

darko861_0-1685457501362.png

 

So, if I choose greater than or equal to 80% the matrix should only display the rows that are >=80%. The matrix must also have the correct totals. I created a measure (Revenue Display) that only displays rows >=80% of the Revenue on a company level (FTG):

 

darko861_1-1685457769203.png

 

As you see it does give me the correct totals on the company level (FTG) but if you expand FTG 164 you will notice that only 2290 is displayed and not 3096 as the GM % on this level is only 70%.

darko861_2-1685458543489.png

 

But is there a way to still display both 2290 and 3096 so that the user can see that it sums up to 5386? The same way of thinking should also be applied to the other levels. 

 

The filter condition >=80% should only be applied on the company-level FTG but when expanding the rows the user should always be able to calculate all rows so that it adds up to 5386 as displayed by the measure Revenue in the matrix regardless of how the percentage distribution (GM %) looks at the other levels.

 

Here is my sample file:

 

https://www.dropbox.com/s/okjemos34qt29a7/DataTest_Totals.pbix?dl=0

 

Your help is much appreciated.

 

1 ACCEPTED SOLUTION
darko861
Resolver II
Resolver II

Hi,

 

One way of doing it might be to create two measures like this:

 

Rev6 = SWITCH(TRUE(),ISFILTERED(DimAccounts[Subheader])||ISFILTERED(DimAccounts[Subheader2])||ISFILTERED(DimDate[Month-Year]),[Revenue],[Revenue Display])
 
Rev7 = SWITCH(TRUE(),ISINSCOPE(DimAccounts[Subheader])||ISINSCOPE(DimAccounts[Subheader2])||ISINSCOPE(DimDate[Month-Year]),[Revenue],[Revenue Display])
 
Both measures give the correct results. I will use Isinscope.
Do you think this is the most efficient way?

 

 

View solution in original post

1 REPLY 1
darko861
Resolver II
Resolver II

Hi,

 

One way of doing it might be to create two measures like this:

 

Rev6 = SWITCH(TRUE(),ISFILTERED(DimAccounts[Subheader])||ISFILTERED(DimAccounts[Subheader2])||ISFILTERED(DimDate[Month-Year]),[Revenue],[Revenue Display])
 
Rev7 = SWITCH(TRUE(),ISINSCOPE(DimAccounts[Subheader])||ISINSCOPE(DimAccounts[Subheader2])||ISINSCOPE(DimDate[Month-Year]),[Revenue],[Revenue Display])
 
Both measures give the correct results. I will use Isinscope.
Do you think this is the most efficient way?

 

 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors