cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dkrishnan
Frequent Visitor

Power Bi Dynamic Slicer

HI

 

I have a table with as per below:

DATE_CODEPARTNERREVENUE_TYPEHUBPRODUCTCOMPONENT_DIRECTIONCALL_COUNTDURATIONAMOUNT
01-03-2020AMOBILEEURAAAB200040000500
01-03-2020BFIXEDASIABBAB100030000200

 

Now i want to create a chart that dynamically change to either show CALL_COUNT or DURATION or AMOUNT. Whenever i tried using selectedvalues, it is not enabling me to choose either CALL_COUNT, DURATION or AMOUNT. They are not measured column rather is data value. How do i achieve this using a dynamic slicer or any other option?

 

Appreciate any help

 

regards

deven

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Power Bi Dynamic Slicer

HI @dkrishnan,

You can create a new table with all measure field names and use this table field on a slicer.
After these steps, you can write a measure formula to compare current slicer seleciton and use with switch function to redirect current value to specific measure formula results.

Calculate table:

Selector= {"Measure1","Measure2","Measure3"}

Measure:

Measure =
SWITCH (
    SELECTEDVALUE ( Selector[Value] ),
    "Measure1", [Measure1],
    "Measure2", [Measure2],
    "Measure3", [Measure3],
    Sum(Table[Amount])
)

Regards,

Xiaoxin SHeng

Community Support Team _ Xiaoxin
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Super User IV
Super User IV

Re: Power Bi Dynamic Slicer

You need to use the Disconnected Table Trick as this article demonstrates: https://community.powerbi.com/t5/Community-Blog/Solving-Attendance-with-the-Disconnected-Table-Trick...


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Super User IV
Super User IV

Re: Power Bi Dynamic Slicer

@dkrishnan 

You can refer : https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...





Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
In case it does not help, please provide additional information and mark me with @
My Recent Blog -Week is not so Weak Proud to be a Super User! Connect on Linkedin


Community Support
Community Support

Re: Power Bi Dynamic Slicer

HI @dkrishnan,

You can create a new table with all measure field names and use this table field on a slicer.
After these steps, you can write a measure formula to compare current slicer seleciton and use with switch function to redirect current value to specific measure formula results.

Calculate table:

Selector= {"Measure1","Measure2","Measure3"}

Measure:

Measure =
SWITCH (
    SELECTEDVALUE ( Selector[Value] ),
    "Measure1", [Measure1],
    "Measure2", [Measure2],
    "Measure3", [Measure3],
    Sum(Table[Amount])
)

Regards,

Xiaoxin SHeng

Community Support Team _ Xiaoxin
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We've launched a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Top Solution Authors
Top Kudoed Authors