Forum Discussion

yfquirogah's avatar
yfquirogah
Icon for Helper I rankHelper I
5 years ago

Slicer not removing dates from visual

I'm having an issue with a couple visuals. I have a measure which counts the amount of "entries":

Cant. Ingresos = COUNTROWS('Altas_2019-2020')+0

The 0 at the end I had to use it for the chart to plot the 0 when there is no entries or data in an specific month instead of the line going straight to the next available point. Kind of what happens in this problem: https://community.powerbi.com/t5/Desktop/Plot-zero-when-there-is-no-data-in-line-chart/td-p/506235

 

Right now the plot looks like this:

 

Is already plotting 0 for the rest of the year even though it has not even been loaded yet. This I kind of understand why is happening and as a last resource I think I'll just put a filter for the whole page and take out the months that havent been updated yet (it would be an inconvinience because it would requeire for me to manually change that part every month but OK).

The weird thing happens when I use the slicer to select one specific year, if I select 2020 for example this is what it shows:

 

Everything before and after 2020 goes to 0 instead of just removing it from the chart. Ever since I put the 0 to plot when there is no data is doing this but now I don't know how to fix it and still do what I need it to do.

 

I would appreciate any suggestion. Thank you in advance.

 

6 Replies