Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Blank Values In Cumulative Chart

Is there any way I can make the cumulative values appear when there is no data in the cumulative chart? I have a chart that shows the cumulative values for all the days in the month. Also, I have a date table related to the main table (TAB_CONSOLIDADA_GERAL) which provides all the dates. I want the value of the previous day to be shown when there is no data.

 

My current measure is as follows:

 

Cumulative_Total =

VAR vDateContext = MAX(TAB_CONSOLIDADA_GERAL[DTA_INIC_MNB])
RETURN

 

CALCULATE(
SUM(TAB_CONSOLIDADA_GERAL[TOTAL]),
FILTER(
ALLSELECTED(TAB_CONSOLIDADA_GERAL),
TAB_CONSOLIDADA_GERAL[DTA_INIC_MNB] <= vDateContext
)
)
 

 

3 Replies