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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Laura0403
Frequent Visitor

Write a Measure with Relation

Hello,

 

I was looking in the Forum and I searched a lot in the internet. 

I am looking for a Measure, where I can tell a Relation.

 

For example: I earn a sum X for an order. I pay X€ for the delievery. How much income do I have per 1 € delievery costs?

I try to make a report, where I need to use a lot of such measures. The absolut numbers are not that meaningful. The important things are the relation numbers. 

Unfortunatly, everytime I google "Power Bi" and "Relation" I always get infos about the Relations in the Model (which makes sense, but is not what I need :D) 

 

Thanks in advance. 🙂

2 ACCEPTED SOLUTIONS

Hello @amitchandak,

 

thanks, I try to define it a little more 🙂 

 

Values & Measures for order values:

RG DB Real ohne GS S. = SUM(Prdo5_Sales[RG DB Real ohne GS]) 

Laura0403_2-1663577551381.png

 

Values & Measures for delivery costs:

UPS Fracht_Netto = sum('UPS Invoice'[FRT Net charge])

Laura0403_1-1663577524527.png

 

I don't understand what you mean with Order ID. Do you mean something like an invoice number or is this a expression I don't know yet?

 

I tried your formular as followed: 

DB€ auf 1€ Fracht = SUMX(VALUES('UPS Invoice'[FRT Net charge], 'UPS Invoice'[UPS Nettobetrag], [UPS Fracht_Netto] - [RG DB Real ohne GS S.]))

Laura0403_0-1663577450353.png

I get the following error:

Too many arguments were passed to the Values function. A maximum of 1 argument is allowed for the function.

 

Thanks again in Advance 🙂

View solution in original post

@Laura0403 , values parenthesis ")" is not closing before comma

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

3 REPLIES 3
amitchandak
Super User
Super User

@Laura0403 , There is something known as related that can help copy data from 1side to many side table.

 

Else you need a common, order table measure like order value and delivery value .

 

Final measure =

sumx(values(OrderIS[Order ID]), [Order value]- [Delivery Value]) )

 

both order and delivery are joined to a common orderid table

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

Hello @amitchandak,

 

thanks, I try to define it a little more 🙂 

 

Values & Measures for order values:

RG DB Real ohne GS S. = SUM(Prdo5_Sales[RG DB Real ohne GS]) 

Laura0403_2-1663577551381.png

 

Values & Measures for delivery costs:

UPS Fracht_Netto = sum('UPS Invoice'[FRT Net charge])

Laura0403_1-1663577524527.png

 

I don't understand what you mean with Order ID. Do you mean something like an invoice number or is this a expression I don't know yet?

 

I tried your formular as followed: 

DB€ auf 1€ Fracht = SUMX(VALUES('UPS Invoice'[FRT Net charge], 'UPS Invoice'[UPS Nettobetrag], [UPS Fracht_Netto] - [RG DB Real ohne GS S.]))

Laura0403_0-1663577450353.png

I get the following error:

Too many arguments were passed to the Values function. A maximum of 1 argument is allowed for the function.

 

Thanks again in Advance 🙂

@Laura0403 , values parenthesis ")" is not closing before comma

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
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!

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
Top Kudoed Authors