Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi,
Having an issue in showing zeros if there is no value until today() and afterwards it should show blank() on the line chart.
I am counting no. of travels using count function but for last two month there was no travel due to corona situation and hence no data in the database and it shows blank.
I would like to replace blanks() before today() on the timeline
.
Thanks//Jayant
Solved! Go to Solution.
Hi @Anonymous ,
Maybe you could try like this:
No.of Site Travel =
IF (
MAX ( 'Date'[Date] ) >= TODAY (),
BLANK (),
COUNTA ( 'SERT3 Site work'[Site Travel] ) + 0
)
you can use an if( isblank
example
set blank to 0 =
IF (
ISBLANK ( 'CalculatedMeasures'[PreviousYearTotalSales] ),
0,
( 'CalculatedMeasures'[Total Sales] )
)
Proud to be a Super User!
Thanks for the reply.
But as I have shown in attached picture.
Data is available till Mar-2020 and today it is May-2020. so I would like to show from Mar-2020 to May-2020 as zero value rather then blank and after May-2020 it should be blank.
Looking for results as shown in picture.
Hi @Anonymous ,
Maybe you could try like this:
No.of Site Travel =
IF (
MAX ( 'Date'[Date] ) >= TODAY (),
BLANK (),
COUNTA ( 'SERT3 Site work'[Site Travel] ) + 0
)
well you can always use your if statement to show blank for values greater than your current date by using blank()
Proud to be a Super User!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.