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.
Hi partners,
I am desperate trying to solve this formula, I kindly request your help.
This is the formula that I am using. If you can help me find the error and give a solution, I will be infinitely grateful. I have tried everything. I don't know what else to do to make the measurement work correctly respecting the filters. I need to solve the denominator of the divide since always both in the calculation that I propose in this post and in the one that I show you, I need to dynamically subtract the month in which it is located at twelve months, that is, if it is January (12 - 1 = 11), if it is February (12 - 2 = 10),etc.. so until December it is 0.
Original formula
total budget for the year - accumulated budget/12-Month(n)
DAX
Solved! Go to Solution.
Hello my friend
After much suffering, this was the formula that worked. sorry to reply late. I leave the formula in case someone can serve you
@Shiroe - what visual context are you using this within? How does Power BI know which month it is located in?
When you say 'maximum date of the year this is filtered' do you mean maximum date in the Fact table?
Have you tried:
DATEDIFF(MAX(Calendar[Date]),MAX(Fact[Date],MONTH)
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Hi , @AllisonKennedy
The real problem is that I need to keep the budget total for a specific year that can change with a filter on one variable. Could you help me ? Please 😞
@Shiroe Can you provide a sample file please via OneDrive link? I'm struggling to see your big picture from what you've described so far (sorry, trying to catch up but haven't invested all the hours into it I'm sure you have! 😄)
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Hi, @AllisonKennedy
I am attaching the test file that I am using. If you see I have mess in _totalbudget and in the return Actual Available Per Month result. I can only pray if you can help me
by the way the formulas in this file are different. The entire calculation process is separated and the Actual Available Per Month measure contains everything within itself to facilitate the review
@Shiroe Does this get close to what you want?
Not sure if you want to use _Cumulative or if that should be using budget instead of Execution values???
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Hello my friend
After much suffering, this was the formula that worked. sorry to reply late. I leave the formula in case someone can serve you
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 |
---|---|
107 | |
98 | |
78 | |
65 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |