Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I have a question,
I have two tables that are connected to eachother:
one with orders:
OrderID | Product |
31 | X |
16 | X |
13 | Y |
and i have a lookup table for the prices:
Product | SellingPrice |
X | € 15.99 |
Y | € 39.99 |
Now I want to know for how much in total I sold products (in this example € 71.97) I want to be able to filter on product.
Thanks in advance !
Regards,
L.Meijdam
Solved! Go to Solution.
Hi,
A quick solution would be to create a calculated column in the Orders table:
Price = RELATED('Product'[SellingPrice])
Then you will get the price for each Product in the Orders table and if you have Quantities aswell you can do a SUMX later on with Price * Quantity to get each value per transaction. Filtering on each Product will work aswell.
Best regards,
Gustav
Hi,
A quick solution would be to create a calculated column in the Orders table:
Price = RELATED('Product'[SellingPrice])
Then you will get the price for each Product in the Orders table and if you have Quantities aswell you can do a SUMX later on with Price * Quantity to get each value per transaction. Filtering on each Product will work aswell.
Best regards,
Gustav
Hi @Anonymous,
Thanks for your suggestion this is indeed a quick solution that let me achieve what I wanted.
Best regards,
L.Meijdam
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |