March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I'm trying to get a formula when I can add together the actuals so far and then the forecast in one row. This formula nearly does what I want
Thanks
Solved! Go to Solution.
The problem with your total column is that when you evaluate [Enquiries] for the entire year it is not blank, and so it returns the value for [Enquiries]. You can get around that by doing a SUMX over the values of your year month column from the date table.
Enquiries & Budget =
SUMX (
SUMMARIZE ( 'Date', 'Date'[Year month], 'Date'[On Or After Current Month] ),
IF (
'Date'[On Or After Current Month] = TRUE,
[Enquiries Budget All SD],
[Enquiries]
)
)
The 'Date'[On Or After Current Month] column assumes a flag in your date table to show which months are either current month or in the future. This will then use the budget for those months and the enquiries for everything in the past.
The problem with your total column is that when you evaluate [Enquiries] for the entire year it is not blank, and so it returns the value for [Enquiries]. You can get around that by doing a SUMX over the values of your year month column from the date table.
Enquiries & Budget =
SUMX (
SUMMARIZE ( 'Date', 'Date'[Year month], 'Date'[On Or After Current Month] ),
IF (
'Date'[On Or After Current Month] = TRUE,
[Enquiries Budget All SD],
[Enquiries]
)
)
The 'Date'[On Or After Current Month] column assumes a flag in your date table to show which months are either current month or in the future. This will then use the budget for those months and the enquiries for everything in the past.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
164 | |
116 | |
63 | |
57 | |
50 |