The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Good day,
I need some assistance with a dax formula for Cumulative actuals. Due to me only having one actual for the first period, I want to override the 0.00 values with the budget amount.
So firstly I created a new actual by overriding the 0.00 values with the budget but when I do the cumulative formula it does not add the amount as needed. Please assist with the cumulative amounts, below are the formula's used
Solved! Go to Solution.
Hi,
Please try something like below whether it works.
Cumulative Actual =
CALCULATE (
SUMX ( VALUES ( 'Key Metrics per Month'[Financial Period] ), [NEW Actual] ),
FILTER (
ALLSELECTED ( 'Key Metrics per Month'[Financial Period] ),
ISONORAFTER (
'Key Metrics per Month'[Financial Period], MAX ( 'Key Metrics per Month'[Financial Period] ), DESC
)
)
)
Hi,
Please try something like below whether it works.
Cumulative Actual =
CALCULATE (
SUMX ( VALUES ( 'Key Metrics per Month'[Financial Period] ), [NEW Actual] ),
FILTER (
ALLSELECTED ( 'Key Metrics per Month'[Financial Period] ),
ISONORAFTER (
'Key Metrics per Month'[Financial Period], MAX ( 'Key Metrics per Month'[Financial Period] ), DESC
)
)
)
Thank you, it works perfectly.
User | Count |
---|---|
15 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |