Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi Experts
the following measure retuns back the correct return - no issue there. But when applied to a 16million rows of data for one fiscal year its just take forever to return a value back in the matrx table...
YTD Forecast (full year) =
VAR TEMPTABLE = SUMMARIZE(
CALCULATETABLE(
ALLSELECTED('Date'),
DATESYTD(
'Date'[Date],
"31/03"
)
),
'Date'[Month and Year],
"@Forecast", [Forecast]
)
RETURN
SUMX(
TEMPTABLE,
[@Forecast]
)
How can this be modifed to run more fast and better.
See sample file
https://drive.google.com/file/d/1UzRnZMz2UZS9qhojxQVRjHWs1HnXj4Dr/view?usp=drive_link
Solved! Go to Solution.
YTD Forecast (full year) =
CALCULATE (
SUMX (
ADDCOLUMNS (
VALUES ( 'Date'[_MonthYearSort] ),
"@TotalForecast", [Forecast]
),
[@TotalForecast]
),
DATESYTD (
'Date'[Date],
"31/03"
)
)
YTD Forecast (full year) =
CALCULATE (
SUMX (
ADDCOLUMNS (
VALUES ( 'Date'[_MonthYearSort] ),
"@TotalForecast", [Forecast]
),
[@TotalForecast]
),
DATESYTD (
'Date'[Date],
"31/03"
)
)
See image as the correct end value 407839, what is the image above is not correct.
Hi @BlueWhite3699 -
Proud to be a Super User! | |
Hi - that formula is not going to work on 16million rows of data and based on the model. I have tried that and give the wrong answer
Hi @BlueWhite3699 - can you please check the below logic:
Proud to be a Super User! | |
Hi Expert - its still incorrect look at my value for Mar 25 407839. thats the correct answer and kindly look at your value
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 108 | |
| 39 | |
| 33 | |
| 26 |