Hi,
I have modified summation of budget values for the current month. Everyting is fine, however I would like to show total modified budget on year row like normal budget summation.
I wrote the below code and it didnt work. I have tried SUMX (Values(Date[Year]) variation, it didnt show anything.
Any idea to bring total modified value to year row?
Budget Modified = IF ( HASONEVALUE ( 'Date'[Month] ); IF ( VALUES ( 'Date'[Month #] ) = MONTH ( TODAY () ) && VALUES ( 'Date'[Year] ) = YEAR ( TODAY () ); DIVIDE ( SUM ( 'Budget'[BudgetAmount] ); 30 ) * DAY ( TODAY () ); SUM ( 'Budget'[BudgetAmount] ) ) )
Solved! Go to Solution.
Hi @HalilG
Hmm...a SUMX pattern should work as long as you sum over months.
I would recommend that you:
Budget Modified should then display the correct total for any aggregation of month, e.g. at year level.
Budget Modified Monthly = IF ( HASONEVALUE ( 'Date'[Month] ); IF ( VALUES ( 'Date'[Month #] ) = MONTH ( TODAY () ) && VALUES ( 'Date'[Year] ) = YEAR ( TODAY () ); DIVIDE ( SUM ( 'Budget'[BudgetAmount] ); 30 ) * DAY ( TODAY () ); SUM ( 'Budget'[BudgetAmount] ) ) ) Budget Modified = SUMX ( VALUES ( 'Date'[Month] ), [Budget Modified Monthly] )
Regards,
Owen
Thanks for replying Owen but I am trying to put modified total in the year row, as it is like normal summation.
I already tried variation of SUMX pattern for year and then month in the same formula but it does not work.
Could u pls share your code Owen ? I'll check that and let u know. I appreciate your help.
Hi,
Try this
=IF(HASONEVALUE(Calendar[Month]),[your measure for computing budget modified],SUMX(SUMMARIZE(VALUES(Calendar[Month]),[Month],"ABCD",[your measure for computing budget modified]),[ABCD]))
Hope this helps.
Featured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
465 | |
180 | |
118 | |
61 | |
52 |
User | Count |
---|---|
444 | |
162 | |
128 | |
75 | |
73 |