Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ViniciusGM
Frequent Visitor

Show (value)+0 where there is no data in a line graph whitin a date range (first day until today)

Hello guys, 
I hope I find you well

I need a graph to show the values of acesses in a website by time. But I have been asked to show zero where there is no data for the graph to be precise...

The problem is, if I use Sum(values)+0, it will show previous dates and future dates where there is no possibility of having any kind of accesses at all...

The value for this accesses starts on 01/08/2021 and should end in "today"

To better illustrate what i ve'been struggling at:
problem.PNG
Basically, I need to filter this central line graph to show values (plus zero where there is no data) in a specific date range and nothing seems to be working.

Thanks in advance.
Vinicius

 

 

 

 

1 ACCEPTED SOLUTION
davehus
Memorable Member
Memorable Member

Hi @ViniciusGM , Could you try creating a calculated column in your date table like below and add it to your visual to restrict the range?

 

Change to suit your range and tables.

 

Date Range = IF(AND('Date Table'[DateKey]>= DATE(2022,01,01),'Date Table'[DateKey]<= TODAY()),1,0)

 

 

View solution in original post

2 REPLIES 2
davehus
Memorable Member
Memorable Member

Hi @ViniciusGM , Could you try creating a calculated column in your date table like below and add it to your visual to restrict the range?

 

Change to suit your range and tables.

 

Date Range = IF(AND('Date Table'[DateKey]>= DATE(2022,01,01),'Date Table'[DateKey]<= TODAY()),1,0)

 

 

Thank you very much! 
It worked perfectly! 😁

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors