cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tracytran91
Helper II
Helper II

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
Eyelyn9
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
Eyelyn9
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

Thank @Eyelyn9 for the solution!

 

Eyelyn9
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 IV
Super User IV

@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])



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.