The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a table that looks something like this:
I use the following formula to caluculate the MEASURE 'Alternative Claculated Burn Rate':
Solved! Go to Solution.
Hi @yashrajs
You can consider to create a date table, then create one-many relationship between tables
Then use the following measure.
Measure =
CALCULATE (
AVERAGE ( 'Historical Contracts by Load Date'[Alternative Calculated Burn Rate] ),
DATESINPERIOD ( 'DateTable'[Date], MAX ( 'DateTable'[Date] ), -6, MONTH )
)
and you can refer to the following link about the function.
DATESINPERIOD function (DAX) - DAX | Microsoft Learn
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @yashrajs
You can consider to create a date table, then create one-many relationship between tables
Then use the following measure.
Measure =
CALCULATE (
AVERAGE ( 'Historical Contracts by Load Date'[Alternative Calculated Burn Rate] ),
DATESINPERIOD ( 'DateTable'[Date], MAX ( 'DateTable'[Date] ), -6, MONTH )
)
and you can refer to the following link about the function.
DATESINPERIOD function (DAX) - DAX | Microsoft Learn
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @yashrajs
Try the following measure.
Alternative Burn Rate MA =
CALCULATE (
DIVIDE (
SUMX (
TOPN (
6,
ALLSELECTED ( 'Historical Contracts by Load Date' ),
'Historical Contracts by Load Date'[Start of Month Date], DESC
),
[Alternative Calculated Burn Rate]
),
6
)
)
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the suggestion @v-xinruzhu-msft however this doesn't seem to work correctly. It gives an insanely high value.
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 June 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
95 | |
80 | |
62 | |
56 |
User | Count |
---|---|
252 | |
121 | |
112 | |
81 | |
70 |