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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yiruan-msft,

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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