The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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. 🙂
Solved! Go to Solution.
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]) |
Values & Measures for delivery costs:
UPS Fracht_Netto = sum('UPS Invoice'[FRT Net charge]) |
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.])) |
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
@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.
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]) |
Values & Measures for delivery costs:
UPS Fracht_Netto = sum('UPS Invoice'[FRT Net charge]) |
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.])) |
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
80 | |
75 | |
52 | |
50 |
User | Count |
---|---|
133 | |
124 | |
78 | |
64 | |
61 |