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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Prabha45
Helper III
Helper III

Field Parameter - Single selection

Hi,
I have created a field parameters with the measures in the report and added the parameter as a slicer and as values to a matrix. I have enabled "switch value to rows groups in the matrix. When a user selects the measures the matrix changes according to the selection. This works fine when two or more measures are selected in the Parameter measure slicer, but when only one measure is selected it only shows the values but not the selected measure name.

Is there any way to show the selected measure name in the matrix when only one meaure parameter is selected.
Thanks in advance.

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

Hi @Prabha45 

After testing, When you select only one option in a field parameter, it does only return the value, not the name of the measure,maybe you can consider use another solution instead of use field paramater of the visual.

1.You can create a new table and put the measure names to the table, then put the coumn to the row of the matrix and don't change the column field of the matrix.

e.g I have test1 and test2 measures

vxinruzhumsft_0-1709694272461.png

vxinruzhumsft_1-1709694491740.png

2.Then create a new measure. and put it to the value of the matrix.

 

Measure= SWITCH(TRUE(),SELECTEDVALUE('Table (2)'[Type])="test1",[test1],SELECTEDVALUE('Table (2)'[Type])="test2",[test2])

 

3.Then create a slicer, and put the type field to the slicer. then when you select it, it will return the related value and include the name.

vxinruzhumsft_2-1709694626835.png

Output

vxinruzhumsft_3-1709694643989.png

 

vxinruzhumsft_4-1709694652038.png

Best Regards!

Yolo Zhu

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-xinruzhu-msft
Community Support
Community Support

Hi @Prabha45 

After testing, When you select only one option in a field parameter, it does only return the value, not the name of the measure,maybe you can consider use another solution instead of use field paramater of the visual.

1.You can create a new table and put the measure names to the table, then put the coumn to the row of the matrix and don't change the column field of the matrix.

e.g I have test1 and test2 measures

vxinruzhumsft_0-1709694272461.png

vxinruzhumsft_1-1709694491740.png

2.Then create a new measure. and put it to the value of the matrix.

 

Measure= SWITCH(TRUE(),SELECTEDVALUE('Table (2)'[Type])="test1",[test1],SELECTEDVALUE('Table (2)'[Type])="test2",[test2])

 

3.Then create a slicer, and put the type field to the slicer. then when you select it, it will return the related value and include the name.

vxinruzhumsft_2-1709694626835.png

Output

vxinruzhumsft_3-1709694643989.png

 

vxinruzhumsft_4-1709694652038.png

Best Regards!

Yolo Zhu

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

 

 

 

 

sanalytics
Solution Supplier
Solution Supplier

Hello @Prabha45 

 

Based on your explanation above.It should not happened. It will be great if you can post your pbix file with some dummy data. It will help us to investigate in deatil. I have tried with my pbix, and it is returning the expected result.

sanalytics_0-1709638015940.png

 

Let me know if t works or not.

 

Regards

sanalytics

If it is your solution then please like and accept it as solution

 

Hi @sanalytics,
Thanks for your reply. I have added the field parameters as values and made them rows in the matrix. Can you add regions in columns and parameter in values and change them to rows option(format visual - values) and check.

Regards,
Prabha

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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