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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Dynamic Slicer for Calculated Measure

I am attempting to get a slicer like in the first image below. I don't know how it was created but I do have the code used for it. Can anyone help duplicate this kind of slicer. See code and images below. 

 

1.PNG

 

 

 

Per capita flow (gpcd) = GENERATESERIES(50, 130, 10) // series that gives slicer the values //
Per capita flow (gpcd) Value = SELECTEDVALUE('Per capita flow (gpcd)'[Per capita flow (gpcd)], 50) // selecting a value to use for calculation //

 

 

 

1 ACCEPTED SOLUTION
edhans
Super User
Super User

That was done using the What If Parameter feature. See this article for an overview.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

2 REPLIES 2
edhans
Super User
Super User

That was done using the What If Parameter feature. See this article for an overview.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

Perfect, thanks!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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