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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors