Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Help Filling with zero in Date Range

daHi, this is the situation:

 

I have Sprint Days and I count the stories in those Sprints. The thing is that maybe in the first or two days of Sprints, there are no Stories. I have to show Zero in that days instead of blank.

 

Now, the measure looks like that, it has a condition to put blanks in those future days in the sprint where there are no data:

 

IF(MAX ( 'BuildBurnUp'[SprintDays])>Today(),BLANK(),CALCULATE (
     SUM('BuildBurnUp'[Actual Build Completed Stories]),
    FILTER (ALLSELECTED ('BuildBurnUp'[SprintDays]),'BuildBurnUp'[SprintDays] <= MAX ( 'BuildBurnUp'[SprintDays]))
))

 

 

So the missing part would be force zero values when the first days of Sprint has no data.

 

Thanks in advance

  • Hi Anonymous , 

    If you want to show 0 in corresponding date and if you are using Matrix, you need to create a calendar table, create relationship on date  and use this in Matrix. If you are suing table, I think you could use if(xxx=blank(),0,xxx) to achieve this. You could refer to my sample for details.

    Best Regards,
    Zoe Zhi

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

1 Reply

  • dax's avatar
    dax
    Community Support

    Hi Anonymous , 

    If you want to show 0 in corresponding date and if you are using Matrix, you need to create a calendar table, create relationship on date  and use this in Matrix. If you are suing table, I think you could use if(xxx=blank(),0,xxx) to achieve this. You could refer to my sample for details.

    Best Regards,
    Zoe Zhi

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.