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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Seanan
Solution Supplier
Solution Supplier

Include missing days in a line chart

I have a line chart that is displaying the total number of logins for each type of user each day. However, on weekends no users login to the system and therefore there will be no data for the weekend. The issue I'm having is that in my line chart instead of plotting the weekends as 0 the line chart skips those days and goes to the next day that there is data available. For example on the 10th of June there were 25 logins then it will skip June 11 and 12 and Jumps to June 13 where there are 13 logins.

 

I have 2 tables, the Event table which comes from a SQL Stored Procedure and then my Date Table.

 

The screenshot below is what it currently looks like. I've created a date table using the following code:

Date Table = CALENDAR("may 23 2022", "jan 1 2030")

PBIDesktop_GmtY85Vnzy.png

 

 

 

 

 

 

 

 

 

The second image below is what I'd like the line graph to look like.

Teams_eyQD3A06Em.png

 

In my event table the EventDate column does not record data for the missing dates that's why I created the date table hoping it would include those missing dates.

 

Any help would be appreciated.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Seanan ,

I created some data:

vyangliumsft_0-1655692025120.png

Here are the steps you can follow:

1. Create measure.

Measure =
IF(
    MAX('Table'[logins])=BLANK(),0,MAX('Table'[logins])
)

2. X axis – Type – Categorical in Format.

vyangliumsft_1-1655692025121.png

3. Result:

vyangliumsft_2-1655692025124.png

 

Best Regards,

Liu Yang

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @Seanan ,

I created some data:

vyangliumsft_0-1655692025120.png

Here are the steps you can follow:

1. Create measure.

Measure =
IF(
    MAX('Table'[logins])=BLANK(),0,MAX('Table'[logins])
)

2. X axis – Type – Categorical in Format.

vyangliumsft_1-1655692025121.png

3. Result:

vyangliumsft_2-1655692025124.png

 

Best Regards,

Liu Yang

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

@Anonymous Thank you for the help! It worked great 🙂

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors