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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Neha12
Frequent Visitor

Slicer slection should dynamically change the fileds and representation

Hi Everyone, 

I have a slicer with values Change and Problem 

Whenever Change is selected,  data for Change should get populated , same goes with Problem 

But here Change and Problem are two different entites. Change and Problem can have different fields, different visuals, measures.

Change can have 6 KPIs , Problem can have 2 KPIs to display 

How to achieve this dynamic functionality 

I'm not sure if field parameters can help.

Creating two buttons, adding page navigation is the easiest way, but want to achieve it using slicer

Please help

Thanks

@amitchandak @Greg_Deckler @lbendlin @tamerj1 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Neha12 ,

Please try below steps:
1. below is my test table

Table:

vbinbinyumsft_0-1666857639994.png

 

Table2:

vbinbinyumsft_1-1666857682287.png

 

2. create a measure with below dax formula

Measure =
VAR cur_type =
    SELECTEDVALUE ( 'Table 2'[Type] )
VAR cur_sale =
    MAX ( [Sales] )
RETURN
    SWITCH (
        cur_type,
        "Change", IF ( cur_sale > 4, 1, 0 ),
        "Problem", IF ( cur_sale <= 4, 1, 0 )
    )

3. add a slicer visual with Table2, add a table visual with Table, then add measure to the filter pane for table visual.

vbinbinyumsft_2-1666857854338.png

Animation5.gif

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_ Binbin Yu
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
Anonymous
Not applicable

Hi @Neha12 ,

In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_ Binbin Yu

Hi, 

I have two different tables as Change and Problem. Both having bit adifferent information

I have prepared two reports one for change and Problem. Now instead for two reports 

I want a slicer that has this two values change and Problem,  so whenever user selects change, data related to change should get populated, same goes for Problem 

No need of creating two different pages , a slicer should provide the need

 

I hope this clear the info

If not please tell me

 

Thanks

Anonymous
Not applicable

Hi @Neha12 ,

Please try below steps:
1. below is my test table

Table:

vbinbinyumsft_0-1666857639994.png

 

Table2:

vbinbinyumsft_1-1666857682287.png

 

2. create a measure with below dax formula

Measure =
VAR cur_type =
    SELECTEDVALUE ( 'Table 2'[Type] )
VAR cur_sale =
    MAX ( [Sales] )
RETURN
    SWITCH (
        cur_type,
        "Change", IF ( cur_sale > 4, 1, 0 ),
        "Problem", IF ( cur_sale <= 4, 1, 0 )
    )

3. add a slicer visual with Table2, add a table visual with Table, then add measure to the filter pane for table visual.

vbinbinyumsft_2-1666857854338.png

Animation5.gif

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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