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! Learn more

Reply
BenBlackswan
Helper V
Helper V

How to show all the dates, including those with no data?

Hello I have a table that has three columns like this, as you can see the latest data I have is up to 20th Feb 2025.

Nietzsche_0-1740911341280.png

When I do a line chart, the chart only goes up to 20 Feb 2025 as below

Nietzsche_1-1740911525101.png

 

I would like to chart a line chart that shows for the entire 2025 year, like this chart done in Excel.

 

Nietzsche_2-1740911673261.png

 

What is the best way I can do that?

 

 

 

 

1 ACCEPTED SOLUTION
BenBlackswan
Helper V
Helper V

omg it was as simple as setting a fixed range in the x-axis....

 

Nietzsche_0-1740917330392.png

 

View solution in original post

4 REPLIES 4
BenBlackswan
Helper V
Helper V

omg it was as simple as setting a fixed range in the x-axis....

 

Nietzsche_0-1740917330392.png

 

danextian
Super User
Super User

Hi @BenBlackswan 

 

You can change your X-axis to categorical but that will restul to disconnected lines.

danextian_0-1740913833054.png

Or write a measure that adds zero to the original value and use categorical.

Sum + 0 = 
SUM('Table'[Value]) + 0

danextian_2-1740914021102.png

 

Or write a measure that returns zero for the latest date if it doesn't have a value and use a continuous x-axis

 

New Value =
VAR _LatestDate =
    CALCULATE ( MAX ( 'Table'[Date] ), ALLSELECTED ( 'Table'[Date] ) )
VAR _Value =
    SUM ( 'Table'[Value] )
RETURN
    IF ( _LatestDate = SELECTEDVALUE ( 'Table'[Date] ), 0 + _Value, _Value )

 

 

danextian_1-1740913880554.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
danextian
Super User
Super User

Hi @BenBlackswan 

Have you tried this toggling this on?

danextian_0-1740911930694.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

hi @danextian 

 

Thank you for the reply.

 

It is still not working after I checked that option

Nietzsche_1-1740912214010.png

 

 

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