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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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