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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
jak8282
Helper III
Helper III

Need to add slicer selection onto paramater list

Hi,

 

We have a paramater slicer which affects a matrix table.

 

We want to be able to add a column into that matrix table based on what they have selected on the paramater list.

 

The paramater slicer is 

Comments Switch = {

    ("Exam booking process", NAMEOF('Exam Experience Survey'[EXPROEVAL2_Exam booking process why]), 0),

    ("Examination Dockets", NAMEOF('Exam Experience Survey'[EXPROEVAL2_Examination Dockets why]), 1),

    ("Pre session communication", NAMEOF('Exam Experience Survey'[EXPROEVAL2_Pre session communication why]), 2)

}

 

The new paramater is

Examples = {
    ("EXPROEVAL1_Exam day experience rating", NAMEOF('Exam Experience Survey'[EXPROEVAL1_Exam day experience rating]), 0),
    ("EXPROEVAL1_Examination Dockets rating", NAMEOF('Exam Experience Survey'[EXPROEVAL1_Examination Dockets rating]), 1),
    ("EXPROEVAL1_Pre session communications rating", NAMEOF('Exam Experience Survey'[EXPROEVAL1_Pre session communications rating]), 2)
}

 

So for the second paramter we want to say if Selected Value of comments switch slicer  is "Exam booking process" then use the first value of the new paramater and the rest for the second and third.

 

Thanks

 

Chris

4 REPLIES 4
Anonymous
Not applicable

Hi @jak8282 ,

 

Did you want to dynamic change rows/columns in a matrix visual based on a slicer?

It seems you want field parameters, please refer to

Let report readers use field parameters to change visuals (preview) - Power BI | Microsoft Learn

 

I made a sample for your reference, you could download it.

vstephenmsft_0-1680162703807.pngvstephenmsft_1-1680162710463.pngvstephenmsft_2-1680162715329.png

 

Best Regards,

Stephen Tao

 

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

 

Hi Stephen, 

 

Unfortunatly that didnt work - I am looking at adding two fields based on a selection from a paramater.

 

Thanks

 

Chris

Thanks Stephen - Ill have a look - do you know why the selectedvalue  would return nothing when putting the value in a variable - if I have the selectedvalue as a measure on its own it seems to work fine?

 

The issue is we are trying to change two columns in a matrix based on the selected parameter.

 

 

jak8282
Helper III
Helper III

I thought about using a calculated column like below however it is returning blank.

 

 

Selected Rating Column = 
VAR SelectedRating = SELECTEDVALUE('Comments Switch'[Name])
RETURN
SWITCH (
    SelectedRating,
    "Exam booking process", 'Exam Experience Survey'[EXPROEVAL1_Exam booking process rating],
    "EXPROEVAL1_Examination Dockets rating", 'Exam Experience Survey'[EXPROEVAL1_Examination Dockets rating],
    "EXPROEVAL1_Pre session communications rating", 'Exam Experience Survey'[EXPROEVAL1_Pre session communications rating],
    BLANK()
)

 

 

**** On further investigation it seems SELECTEDVALUE returns blank for somereason while in a calculated column ???

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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