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.
I have a measure called EHR (effective hourly rate) which = Sum(revenue)/Sum(labor hours)
I put the measure into a matrix using the profitability date.
I need a way to calculate the %change date over date (preferably Quarter over Quarter) but I don't know how to do this without the EHR data being in a column.
@bhmiller89 wrote:
I have a measure called EHR (effective hourly rate) which = Sum(revenue)/Sum(labor hours)
I put the measure into a matrix using the profitability date.
I need a way to calculate the %change date over date (preferably Quarter over Quarter) but I don't know how to do this without the EHR data being in a column.
You may need 3 measures and one calendar table. See more details in the attached pbix file.
EHR = Sum('datatable'[revenue])/Sum('datatable'[labor hours]) EHR Last Quarter = CALCULATE([EHR], PREVIOUSQUARTER('calendar'[Date])) %change = [EHR]-[EHR Last Quarter]
I would refer you to this article from the guys from sqlbi. This has a lot of good advice on writing time intelligence calculations.
http://www.daxpatterns.com/time-patterns/
Let me know how you get on.
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 |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |