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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Completely ignoring a slicer selection

 

Hi there,

 

I'd like to calculate the following:

 

When the user makes a selection in the 'Scenario' slicer, the value in 'Bedrag' should be summed for the selected scenario. On top of that the values for the years without a scenario should still be visible

 

The source table looks like this:

afbeelding.png

 

 

The matrix in the visual should display the following:

 

When selecting Scenario A                                                              

afbeelding.png

 

When selecting Scenario B

afbeelding.png

 

What currently happens when selecting a scenario the green cells aren't displayed (because they have no scenario).

 

Thanks in advance!

2 REPLIES 2
dax
Community Support
Community Support

Hi wongchungjec,

You could try below suggestions.

You could create table like below(you could use below query in your sample directly), then create a relationship between two tables

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUdJxVIrViVZyAjGdlGJjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [slicer = _t, SECNARIO = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"slicer", type text}, {"SECNARIO", type text}}),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Changed Type", "SECNARIO", Splitter.SplitTextByEachDelimiter({","}, QuoteStyle.Csv, false), {"SECNARIO.1", "SECNARIO.2"}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"SECNARIO.1", type text}, {"SECNARIO.2", type text}}),
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Changed Type1", {"slicer"}, "Attribute", "Value")
in
    #"Unpivoted Columns"

301.PNG302.PNG303.PNG

Best Regards,
Zoe Zhi

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

Anonymous
Not applicable

Thanks! Will have a look at it...

 

You think it's also possible with a measure?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors