Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
My graph used to forecast fine, but now, after updating the dataset, I have the following error: "to forecast, data cannot have empty values". I'm not sure how to approach this one. I would like to forecast up to 2026, but it seems I have an empty field (see image below). The Y axis is coming from a measure, the code is shown below. The X axis is a calendar that was generated from 2021 to 2026. Any help would be super appreciated! Thanks
Remaining Tokens02 =
VAR __StartingTokens = 375802
VAR __MaxDate = MAX('Date Table'[StartDate])
RETURN
__StartingTokens -
CALCULATE(
SUM(Token2021[Credits]),
'Date Table'[StartDate] <= __MaxDate,
ALL(Token2021[StartDate])
)
Hi @jfn ,
I think this may be caused by relationship between tables, try to modify the formula like this:
Remaining Tokens02 =
VAR __StartingTokens = 375802
VAR __MaxDate =
MAX ( 'Date Table'[StartDate] )
RETURN
IF (
MAX ( [StartDate] ) <> BLANK (),
__StartingTokens
- CALCULATE (
SUM ( Token2021[Credits] ),
'Date Table'[StartDate] <= __MaxDate,
ALL ( Token2021[StartDate] )
)
)
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
With this formulae, I still have an empty row (pic below)... Not sure if this is related, but here's how I generated the dates (for reference).
Date Table = CALENDAR(DATE(2021,01,01),TODAY())
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Check out the November 2024 Power BI update to learn about new features.
User | Count |
---|---|
94 | |
90 | |
83 | |
75 | |
49 |
User | Count |
---|---|
145 | |
140 | |
109 | |
68 | |
55 |