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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Aggregation of lines in Orders (sum value)

Hello, 

 

Here is the problem:   I need to aggregate the sum of all orders below  <$75000  and also the sum of all orders =>$75000

 

I would like to have card visuals, one that totals the value of all orders that are below 75000 in value, and another card visual that totals all of the orders with values above or equal to 75000.   

 

The formula I am using below sort of works...but it is totalling at the line level...I need totals aggregated at the Order level.   

 

And if there are no orders with values of <75k, then the card visual should just show  "NA".   

 

Totals < 75k = CALCULATE(SUM(Orders[Net Price]),FILTER(Orders,Orders[Net Price]<75000))

 

We have purchase orders that contain multiple lines, such as: 

Order 2345-A

  Line 1  $236

  Line 2  $765

  Line 3  $120

 

 

 

1 ACCEPTED SOLUTION

Need to create as a measure. My mistake forgot to put Aggregation

 

Totals < 75k = CALCULATE(SUMx(filter(summarize(Orders,Orders[id],"_net",sum(Orders[Net Price])),[_Net]<75000),[_net]))

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

5 REPLIES 5
amitchandak
Super User
Super User

Try like

Totals < 75k = CALCULATE(SUMx(filter(summarize(Orders,Orders[id],"_net",Orders[Net Price]),[_Net]<75000),[_net]))

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

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
Anonymous
Not applicable

Hi and thanks for helping - 

 

I'm trying this as a measure and as a calculated column, but neither is working. 

 

For some reason, the necessary column [net price] is not showing as an option when I write the formula so I can't include it.  

 

 

Anonymous
Not applicable

Hello!   

 

It worked!!   Thank you so much.    I will do kudos and mark as solved. 

 

Can you please just explain the [_net]  part?    I don't understand how that is working

Need to create as a measure. My mistake forgot to put Aggregation

 

Totals < 75k = CALCULATE(SUMx(filter(summarize(Orders,Orders[id],"_net",sum(Orders[Net Price])),[_Net]<75000),[_net]))

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
Anonymous
Not applicable

Sorry for my not understanding. 

 

What does the [_Net] refer to?    I don't have any columns labeled as such.   

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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