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

Display custom results from measures through a sort of slicer

Hi,

 

I'm a beginner in power bi and i need your support.

I've created a table with 2 values from data base (NB= quantity and TTC_EUR= amount) and 2 measures ( taux = rate).

achhay_1-1599211977884.png

I would like to set up a kind of slicer on a measure in order to display values within a range specified by the user.

 

For example, the user would like to display rate between 50% and 70%. I would like the table display only the suppliers "2B M" and "2C".

 

Thanks for your help.

 

André

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

 

1. Create what-if parameter.

waht.PNGwhat-if.gif

 

3. Create a measure and put it into "Filters on this visual".

Measure =
IF (
    [Rate] >= MIN ( Parameter[Parameter] )
        && [Rate] <= MAX ( Parameter[Parameter] ),
    1
)

 what-if.PNG

 

4. Test.

amount.gif

 

BTW, .pbix file attached.

 

 

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

4 REPLIES 4
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

 

1. Create what-if parameter.

waht.PNGwhat-if.gif

 

3. Create a measure and put it into "Filters on this visual".

Measure =
IF (
    [Rate] >= MIN ( Parameter[Parameter] )
        && [Rate] <= MAX ( Parameter[Parameter] ),
    1
)

 what-if.PNG

 

4. Test.

amount.gif

 

BTW, .pbix file attached.

 

 

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

Thank you for your tutorial @Icey !

Have a nice day

 

amitchandak
Super User
Super User

@Anonymous , You can not have a measure as a filter.

You need to create an independent table of the filter . Say generate series 1,100

 

then you need filter you measure/s using that, also need to use values

 

example

new measure  =

var _min = minx(series,series[value])

var _max = maxx(series,series[value])

return

sumx(filter(values(Table[Fourissuer]), [measure] >=_min && [Mesure]<=_max),[Meausre])

Pragati11
Super User
Super User

Hi @Anonymous ,

 

Try to check What-If Parameters in POwer BI. They might help you.

Check following articles if they can help:

https://radacad.com/power-bi-what-if-parameters

https://www.peakindicators.com/blog/what-if-parameters-in-power-bi

https://www.absentdata.com/power-bi/parameter-power-bi/

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

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.