Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I have a table with amount and quantity per location, per product, etc.
What is the best measure to calculate the average price.
At this moment i have the following:
Solved! Go to Solution.
Hi @marsclone ,
Do you want to get the output below?
If it is, you could create the measure below.
difference price = VAR average_price_2017 = CALCULATE ( [Average Price], FILTER ( 'Date', 'Date'[Year] = 2017 ) ) VAR average_price_2018 = CALCULATE ( [Average Price], FILTER ( 'Date', 'Date'[Year] = 2018 ) ) RETURN average_price_2018 - average_price_2017
If you still need help, please share your desired output.
In addition, please mask sensitive data before uploading.
Best Regards,
Cherry
Hi @marsclone ,
Do you want to get the output below?
If it is, you could create the measure below.
difference price = VAR average_price_2017 = CALCULATE ( [Average Price], FILTER ( 'Date', 'Date'[Year] = 2017 ) ) VAR average_price_2018 = CALCULATE ( [Average Price], FILTER ( 'Date', 'Date'[Year] = 2018 ) ) RETURN average_price_2018 - average_price_2017
If you still need help, please share your desired output.
In addition, please mask sensitive data before uploading.
Best Regards,
Cherry
Hello Cherry,
Thank you for your help! This will work!
Is this a better solution instead of measures calculating (Amount YTD & Quantity YTD) and (Amount LY & Quantity LY) and divide those and substract?
Regards Marcel
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
78 | |
63 | |
52 | |
47 |
User | Count |
---|---|
212 | |
82 | |
61 | |
61 | |
60 |