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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
OkbaBG
Frequent Visitor

filter and show only values greater than selected.

Hi, I need some help to create a simple DAX function that filters all values in a table/visual that are greater than a selected value corresponding to a number associated to a brand.

 

For example:

 

Nike   1000

addidas  3000

Puma   2000

New Order 2500

My Brand 2200

 

I want to create a Dax function that only selects and shows in table the brands and their sale numbers that are greater than "My Brand" .. 

 

Any advice would be welcome.. thx in advace. 

 

 

7 REPLIES 7
Anonymous
Not applicable

Did you find any solution?

v-yuta-msft
Community Support
Community Support

Hi OkbaBG,

 

You can use a visual level filter like below to achieve your requirement.

捕获.PNG 

 

Regards,

Jimmy Tao

What if you want to do this with a value selected from another visual instead of a static value?

Anonymous
Not applicable

Did you find a way to do this?

Hardik
Continued Contributor
Continued Contributor

https://www.sqlbi.com/articles/using-the-selectedvalue-function-in-dax/

I hope this article provides you with a solution

OkbaBG
Frequent Visitor

thanks, but Selectedvalue returns the catagorical name ("My Brand"), I would like the measure to return the coresponding numeric value in the table. So I can then create another measure that returns all values greater than that number.. 

 

 

OkbaBG
Frequent Visitor

 

Measure = AVERAGEX(FILTER('USWITCH TABLE (Pivot)', RELATED('USWITCH Supplier/Plan'[supplier]) = "British Gas"), 'USWITCH TABLE (Pivot)'[Value])

 

Measure 2 = AVERAGEX(FILTER('USWITCH TABLE (Pivot)', [average values] >= [Measure]), [average values])

 

these two measures do not seam to filter out the values as i wish.. any idea why the > sign does not work, but when i replace it with = then it does and filters the value down to one row for british Gas

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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