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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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