cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Measure greater than X value

Good day experts.

I want to create a metric in BI that counts purchase orders greater than X value, let's say $500,000.

The table goes something like this:

PURCHASE ORDERARTICLEMATTER
1A 108.000,00
1B 270.000,00
2C 395.000,00
2D 132.000,00
3A 588.000,00
3B 108.000,00
4C 390.000,00
5D 390.000,00

The expected result in this case is 2, corresponding to purchase orders number 2 and 3.

Thanks a lot!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Syndicate_Admin ,

 

measure =

var _purchase = calculate(Sum(Table[MATTER]), filter(allselected(Table), Table[PURCHASE ORDER] = max(Table[PURCHASE ORDER]))

return

sumx(filter(values(Table[PURCHASE ORDER]), _purchase  >50000), calculate(Sum(Table[MATTER])) )

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Excellent! Worked.

Thank you very much.

amitchandak
Super User
Super User

@Syndicate_Admin ,

 

measure =

var _purchase = calculate(Sum(Table[MATTER]), filter(allselected(Table), Table[PURCHASE ORDER] = max(Table[PURCHASE ORDER]))

return

sumx(filter(values(Table[PURCHASE ORDER]), _purchase  >50000), calculate(Sum(Table[MATTER])) )

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

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

Top Solution Authors
Top Kudoed Authors