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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Pbiuserr
Post Prodigy
Post Prodigy

What-if parameter values as category on chart

Hello

I have one advanced, complex query (as for me). 

Lets assume I calculate some measure and its monthly change. I have a threshold, lets say 30% (on monthly change) and I would like to  build a chart based on that, so basically the category (thus axis) would consist of countries/locations/places/you name it, which passed the threshold in given period. I guess I'd need to use what-if parameter? 

 

Any idea how to build that or other way to visualise these values along with some measure calculated for them?

 

6 REPLIES 6
VijayP
Super User
Super User

@Pbiuserr 

You can create what if parameter and there you need to select the data type decimal

in min 0 and in max 1 and increment will be 0.1

This will create a table containing one Column and a measure 

that measure you need to apply in your measure with switch or if function

if(the slicer value >0.3%,measure, blank()) ! let me know if any challenges




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Hello,

Nope, I've abandoned this idea, however the answers weren't quite what I wanted to achieve. Thank you 

@VijayP 
It doesn't really filter as I wanted, however you gave me an idea


filter country =

filterVar = [Percentage change]
RETURN
IF ( filterVar < 0.05, BLANK(), [Headcount])

works good. are there any drawbacks of that?

@Pbiuserr 

in your DAX you need to replace 0.05 with What if parameter! then it would be dynamic




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


VijayP
Super User
Super User

@Pbiuserr 

How you want the threshold appear in chart , some data point gives more clarity




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


@VijayP 
It doesn't need to be visible in chart or just in tooltip so user can see this >=30%

for example the chart would be like:

 

headcount (value) of countries (x-axis) which got >=30% threshold in given period (calendar[year-month]) so for example in feb 2022 Austria na UK will be visible on chart, in October 2011 Netherlands, UK, France etc 

in Qlik its referred as "calculated dimension"


Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors