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

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

Reply
joshua1990
Post Prodigy
Post Prodigy

SUM on Order Level with Relation within Table

Hello everyone!

I have a transactional table that contains the order ID within 2 columns:

ArticleOrder1KeyOrder2Quantity
AAAA100L1200150
AAAA101L1220070
AAAA105L2100100
AAAA106L2101100

The L1 key defines the last tracked quantity.

The L2 key defines the first tracked quantity.

Now I need to compare these two numbers to get the yield per order level.

But how?

In the example above for order 100, I would compare L1 = 50 with L2 = 100.

How would you build this relationship between a DAX measure?

 

 

1 REPLY 1
vivran22
Community Champion
Community Champion

Hello @joshua1990 ,

 

How do you mean to compare? What is the logic behing grouping? Is it just:

SUM of Order Qty of L1 / Sum of Order Qty of L2?

 

Cheers!
Vivek

Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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.