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
tracytran91
Helper III
Helper III

Filter unsual value with parameter slicer

Hi friends, 

 

I would like to filter values ( created by a measure ) by using a "What-if" parameter. Could you please help me to create a measure to filter values which is greater than the input value?

For example: 

If the user input a value 3.01. The measure [ %discount vs Gross Sale] should ONLY show up value greater than 3.01 

 

SelectedValue.png

 

Any help is highly appreciated. 

Thank you in advance. 

 

onlyand nothing moreMore (Definitions, Synonyms, Translation)

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @tracytran91 ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it.😀

 

Best Regards,
Eyelyn Qin

 

View solution in original post

4 REPLIES 4
v-eqin-msft
Community Support
Community Support

Hi @tracytran91 ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it.😀

 

Best Regards,
Eyelyn Qin

 

Thank @v-eqin-msft for the solution!

 

v-eqin-msft
Community Support
Community Support

Hi  @tracytran91 ,

 

You could use the following formula to create a measure

Measure = IF([%discount vs Gross Sale]>=[Parameter Value],1,0)

and apply it to filter pane(set as "=1") as shown below:

2.3.2.1.gif

Here is the pbix file.

 

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

amitchandak
Super User
Super User

@tracytran91 , Try a measure like

 

measure =
var _sel = selectedValue(whatif[whatif])
return
avergageX(filter(Values(Table[customer]),[%discount vs Gross Sale]>_sel),[%discount vs Gross Sale])

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.