Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
lucmax
Helper II
Helper II

Filter to always show one measure irrespective of the filter selection

Hi all,

 

I know that this problem has already been described and solved a few times, but I can't find a solution to my problem.

 

I have the following measure:

 

anzahl_msa_esa_teilnahme_all_selected_measures = 
    SWITCH(
        TRUE(),
        SELECTEDVALUE(SzenarioSchule[Index]) = 1, [anzahl_msa_esa_teilnahme],
        SELECTEDVALUE(SzenarioSchule[Index]) = 2, [anzahl_msa_esa_teilnahme_alle_schulen],
        SELECTEDVALUE(SzenarioSchule[Index]) = 3, [anzahl_msa_esa_teilnahme_vergleichsschule],
        BLANK()
    )

 

 

The table 'SzenarioSchule' looks like this:

IndexMeasure
1Ihre Schule
2Alle Schulen
3Vergleichsschulen

 

I have a slicer on this table to select which measures are displayed in other visuals, e.g. bar charts. Now I want to always show the measure "Ihre Schule" (index 1) even if it is not selected in my slicer. How can I achieve this?

BR and thank you in advance!

2 REPLIES 2
Anonymous
Not applicable

Hi @lucmax ,

Base on your description, it seems that you want to show the measure "Ihre Schule" (index 1) on other visuals ignore the slicer selection. You can put the measure [anzahl_msa_esa_teilnahme] on the other visuals directly to replace the measure [anzahl_msa_esa_teilnahme_all_selected_measures]

 

If the above one can't help you get the expected result please provide some raw data(exclude the sensitive data) in the table 'SzenarioSchule' and expected result with specific samples base on the sample data? It would be helpful to get the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Hi @Anonymous,

thank you for the answer, unfortunately, that doesn't help me. I'll share a few more screenshots to show what I want to achieve before I customise the report so that I can share it.

 

I have this slicer, where I only want to show two of the three possible values from the 'SzenarioSchule' table.

 

lucmax_1-1716457174190.png

 

And then I have the bar chart with the measure mention above:

lucmax_2-1716457226088.png

 

If I now filter on the slicer, so the comparision measure-values, it only shows the selected one:

lucmax_3-1716457275523.png

But what I want is, the bar chart showing the selected bar and always the "Ihre Schule" bar. So like this (I placed it in there with the snipping tool ;)):

lucmax_4-1716457439088.png

 

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.