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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
pawlowski6132
Helper V
Helper V

Dynamic Measure Display Based on User Selection in Matrix

Hi, quick question, I have a solution that allows my report users to add/remove the display of measure data in a Matrix visual. However, as you can see, the solution is not ideal. 

 

Is there a way to add/remove the measure itself and not just the data?

 

pawlowski6132_0-1613748035350.png

 

Thanx in advance.

1 ACCEPTED SOLUTION
v-robertq-msft
Community Support
Community Support

Hi, @pawlowski6132 

After the test, I can just use measures to achieve the dynamic display of measures' data based on the Slicer selection, the title can’t disappear because the measures are placed into the value of the Matrix and they won’t disappear until you delete them from the Matrix manually, here are my steps:

I created the measures for the measures I want to slicer by the selection of Slicer:

Measure11 =

var _selectedmeasure=

SELECTCOLUMNS(ALLSELECTED(Slicer),"1",[name])

return

IF("Measure1" in _selectedmeasure,[Measure1],BLANK())
Measure22 =

var _selectedmeasure=

SELECTCOLUMNS(ALLSELECTED(Slicer),"1",[name])

return

IF("Measure2" in _selectedmeasure,[Measure2],BLANK())
Measure33 =

var _selectedmeasure=

SELECTCOLUMNS(ALLSELECTED(Slicer),"1",[name])

return

IF("Measure3" in _selectedmeasure,[Measure3],BLANK())

And I created a Matrix and a Slicer table and place like this:

v-robertq-msft_0-1613981978278.png

 

You can download my test pbix file here

Here are some possible ways to achieve adding/Removing matrix columns based on Slicer, you can check if they can meet your requirement in your situation:

https://community.powerbi.com/t5/Desktop/Adding-Removing-matrix-columns-based-on-Slicer-Filter/td-p/...

https://community.powerbi.com/t5/Desktop/Dynamic-Measure-Display-Based-on-User-Selection-in-Matrix/t...

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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

View solution in original post

3 REPLIES 3
v-robertq-msft
Community Support
Community Support

Hi, @pawlowski6132 

After the test, I can just use measures to achieve the dynamic display of measures' data based on the Slicer selection, the title can’t disappear because the measures are placed into the value of the Matrix and they won’t disappear until you delete them from the Matrix manually, here are my steps:

I created the measures for the measures I want to slicer by the selection of Slicer:

Measure11 =

var _selectedmeasure=

SELECTCOLUMNS(ALLSELECTED(Slicer),"1",[name])

return

IF("Measure1" in _selectedmeasure,[Measure1],BLANK())
Measure22 =

var _selectedmeasure=

SELECTCOLUMNS(ALLSELECTED(Slicer),"1",[name])

return

IF("Measure2" in _selectedmeasure,[Measure2],BLANK())
Measure33 =

var _selectedmeasure=

SELECTCOLUMNS(ALLSELECTED(Slicer),"1",[name])

return

IF("Measure3" in _selectedmeasure,[Measure3],BLANK())

And I created a Matrix and a Slicer table and place like this:

v-robertq-msft_0-1613981978278.png

 

You can download my test pbix file here

Here are some possible ways to achieve adding/Removing matrix columns based on Slicer, you can check if they can meet your requirement in your situation:

https://community.powerbi.com/t5/Desktop/Adding-Removing-matrix-columns-based-on-Slicer-Filter/td-p/...

https://community.powerbi.com/t5/Desktop/Dynamic-Measure-Display-Based-on-User-Selection-in-Matrix/t...

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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

lbendlin
Super User
Super User

Please look into the functionality of Calculation Groups and SELECTEDMEASURE()

thanx, will do

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.