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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
JasonXieee
Helper I
Helper I

How to use fields parameter to create a measure slicer? (cannot work in matrix's Values part)

Dear PBI community friends,


I followed this guidance (https://www.youtube.com/watch?v=uGiot_76KX0) and created a measure slicer for my matrix visual.

 

I have only one simple raw data table. Some columns are dimensions (product code, supplier, manufacturer, etc.), and some are KPIs (spend, price...). I have created the parameter table with 10 measures I selected. It generated a slicer for me automatically as well. But when I put this parameter into the Values part of my Matrix visuals, there is no related measure showing up in the table.

 

I tried to put the parameter in the Row or Column, it worked well. The row and column changed based on my slicer selection.

 

May I know what the problem is? Here is the screenshot. If you need more information, please let me know and I will respond as quick as possible.

 

JasonXieee_0-1739354992683.png

 

 

One more side question: there is another solution to build a measures slicer: https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic.... It is using a new measure table and SWTICH() function. I guess this is a solution for 4 years ago when we did not have parameters? May I know is there any difference between these two solutions?

 

 

Thank you so much,

Jason

 

1 ACCEPTED SOLUTION

>> So is it a limitation of the measure slicer that user can only refer to measures, not columns?

You can use columns as field parameters too, but these need to be used as dimensions (in rows or columns of matrix). Values require some sort of aggregation which we apply through measures (i.e. sum, average, min, etc) and by using just column in values it is not clear what calculation should be applied

 

>> How can I put a number column into the slicer?

Create a measure based on that column

View solution in original post

6 REPLIES 6
wini_R
Solution Supplier
Solution Supplier

Hey @JasonXieee,

I've just tested that scenario on my end and it works fine, I can select a measure in the slicer and it's instantly reflected in a matrix.
Does adding one of the measures separately into values section work as expected? Is the interaction between visuals turned on?

Hello Wini,

 

Thanks for answering this.

 

Do you put it in the Values fields? From my side, it works when I put the parameter in the row and column area but fails when I put in the Values fields. Therefore, it should not be a problem in the interaction. When I put the measure directly into the Values part, it works as well.

 

May I see your parameter formula? I am thinking when I put the measure directly into the matrix, I need to select First to show the value. I guess the parameter cannot achieve this.

 

JasonXieee_0-1739359257578.png

 

 

Thank you.

 

Hey @JasonXieee,
Yes, I put it in the Values section. Here is my parameter table:

wini_R_0-1739359922718.png

Please make sure that measures (marked in green) are really measures and not the columns, i.e. my Avg1 measure is:

Avg1 = AVERAGE(tbl[Sales])

Oh well, I think we find the cause.

 

All I put into the parameters are columns from the raw data originally, instead of measures I built in the PowerBI. So is it a limitation of the measure slicer that user can only refer to measures, not columns? How can I put a number column into the slicer? Thank you.

>> So is it a limitation of the measure slicer that user can only refer to measures, not columns?

You can use columns as field parameters too, but these need to be used as dimensions (in rows or columns of matrix). Values require some sort of aggregation which we apply through measures (i.e. sum, average, min, etc) and by using just column in values it is not clear what calculation should be applied

 

>> How can I put a number column into the slicer?

Create a measure based on that column

Fantastic! Finally, we sorted it out. Thank you for your patience and guidance. Have a good day, Wini.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.