Forum Discussion
Total Budgets for Next Month
Hi sturlaws,
This BudgetsNew[BUD_MONTH_YEAR] is in the below format:
"MM/DD/YYYY"
And below attached is my Budgets table where the next month's formula is not working.
https://www.dropbox.com/s/vtirm2681xi891g/Budgets.pbix?dl=0
Please, can you suggest to me what I have to do?
Great!
try this measure
Next Month Budget2 = CALCULATE(SUM(Budgets[BUD_AMOUNT]); PARALLELPERIOD(Budgets[BUD_MONTH_YEAR];1;MONTH))
hm, Budgets[BUD_MONTH_YEAR] has a timepart, some of the items is at 07:00, others at 08:00, not sure if that might cause some issues down the road. I would separate that into a date and time column(if time is at all needed).
Cheers,
Sturla
- PreetiSahu3216 years ago
Helper I
Hi sturlaws ,
As I have put this measure formula, still it is not showing me the exact value. As this month is October, It should display the total value of November i.e. 25,300 as you can see in the below screenshot.
Anything I have to do else?
- sturlaws6 years ago
Resident Rockstar
Sorry, I thought you wanted to have budget next month in a table with month on the axis.
If you just want the next month relative to todays date, use this formulaNext Month Budget = CALCULATE ( SUM ( Budgets[BUD_AMOUNT] ); FILTER ( ALL ( Budgets[BudgetDate] ); Budgets[BudgetDate] = DATE ( YEAR ( TODAY () ); MONTH ( TODAY () ) + 1; 1 ) ) )But you need to separate the date part of [BUD_MONTH_YEAR], you can do this by creating a new column like this
BudgetDate = Budgets[BUD_MONTH_YEAR].[Date]- PreetiSahu3216 years ago
Helper I
Hi sturlaws ,
Now, this measure formula is working perfectly. Thank you so much😊
One more thing I want to know is, Can you tell me how I can get the total Budget of the current month? Means, As this current month is October, So it will show me only the total Budget of October.
If you have any idea, please suggest to me what I have to do?