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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Visuals with flexible target (end user can input target value)

Dear all,

 

May I ask your advise for below issue?

 

Context: I have a matrix with conditional format (green, red, yellow) for value base on target value.

Expectation: I want to create a dynamic/box for target, then end users can input which value of target they want to this box. 

                     The conditional formatting will be changed follow the input value of target.

Support need: kindly advise how can I create target visual like that.

 

Below is example of current data, but I fixed target value is 85%.

Nguyen_0-1631443290036.png

 

Thanks for your support!

 

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Do you choose "Fixed decimal number" Data type when creating the parameter? 

Icey_0-1632116763847.png

what-if.gif

 

 

Best Regards,

Icey

 

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

8 REPLIES 8
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try to use What-if parameter to dynamically change the target value.

 

Icey_1-1631676024662.png

Icey_2-1631676056066.png

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Dear Icey,

 

Thanks for your advice. I can create what it parameter and set conditional formatting accordingly.

 

However, when I click to parameter to adjust the value, there are many decimal number in this value. Is it possible to adjust to only 2 decimal number in here?

 

Nguyen_0-1631787227932.png

 

Icey
Community Support
Community Support

Hi @Anonymous ,

 

Change the number of decimal places shown for your parameter column.

 

Icey_0-1631870902943.png

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Dear Icey,

 

I format value for visual but when I click to enter value, the number of decimal places shown for this value is quite long.

I'm not sure if it is default with what-if parameter or can I format the number of decimal places shown for displayed value when I click to enter the value?

Nguyen_0-1631890335771.png

Thanks for your advice.

Icey
Community Support
Community Support

Hi @Anonymous ,

 

Do you choose "Fixed decimal number" Data type when creating the parameter? 

Icey_0-1632116763847.png

what-if.gif

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks for your support!

Fowmy
Super User
Super User

@Anonymous 
You can insert two parameters and based on the value from each of these, set up the conditional formatting. If the user set 85% for example, how to get the 70% mark.? if you need on ly one input for 85%

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

tex628
Community Champion
Community Champion

Hi @Anonymous , 

Add a table with all of your different input values. I'd recommend using Generateseries()!

Then add your new column to a slicer and assign single select to it. I'd also advice you to add search to your slicer if theres going to be many different values.

Finally create a measure which divides with the selected value of the column, and use that measure in the conditional formatting. You should get a result similar to this:

tex628_1-1631445019785.pngtex628_2-1631445042417.png

Br, 
Johannes


Connect on LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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