Forum Discussion
Table not available in aggregated dataset
- 3 years ago
There is no need to specify
FILTER(ALL('Calendar'), 'Calendar'[Dates]<=MAX('Calendar'[Dates])Power BI does that automatically for you. What you will want to try is to move the MAX computation out.
Sales (Other) = var m = MAX ( 'Calendar'[Dates] ) return CALCULATE ( LASTNONBLANKVALUE ( 'Calendar'[Dates], SUM ( 'Other Actuals'[RECRU] ) ), 'Calendar'[Dates] <= m )
Hi, it's definitely a bug. None of the visuals have information from subscriber flow 2 table and yet the error points to it.
Through trial and error I found that the problem comes from this measure:
Sales (Other) =
CALCULATE (
LASTNONBLANKVALUE ( 'Calendar'[Dates], SUM ( 'Other Actuals'[RECRU] ) ),
FILTER ( ALL ( 'Calendar' ), 'Calendar'[Dates] <= MAX ( 'Calendar'[Dates] ) )
)
and specifically from the last part
FILTER(ALL('Calendar'), 'Calendar'[Dates]<=MAX('Calendar'[Dates])
When I remove this part, everything works correctly. Please note that the calendar is in dual mode. As you can see, there is no link to "subscriber flow 2" table, even though the message points to it.
How can I modify this mesaure for it to work in the same way? I have one value per month and I want this value to populate every single day with it.
There is no need to specify
FILTER(ALL('Calendar'), 'Calendar'[Dates]<=MAX('Calendar'[Dates])
Power BI does that automatically for you. What you will want to try is to move the MAX computation out.
Sales (Other) =
var m = MAX ( 'Calendar'[Dates] )
return CALCULATE (
LASTNONBLANKVALUE ( 'Calendar'[Dates], SUM ( 'Other Actuals'[RECRU] ) ),
'Calendar'[Dates] <= m
)- Anonymous3 years agoNot applicable
It works! Thanks a lot!! 🙂