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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Need to show continues days in X-axis Line chart though if there are any missing days

Hi Excepts , I need urgent help . I  have day_num column in below xl but few day_num's are missing though i want to show missing days too in Line chart x-axis. (don't want to use "Continuous" type)

Bajigntrr_0-1739340397006.png

Bajigntrr_2-1739340463765.png

If you see, the above for "Amazon" 16th day is missing i understand that , since there is no 16th Day_num for amazon , the Blue line cut off at 15 and starated at 17.. but the ask is , we have to show missing day's also ..for ex: here we have to show 16 day also..(i.e what ever the missing day's are there , we have to show with some 0 data for that particulart missing day )..any help is appriciated ?

 

3 ACCEPTED SOLUTIONS
shafiz_p
Super User
Super User

Hi @Anonymous  Basically, if value in a perticular day is missing, line chart will cutofs there , unless you return 0 for that row. Try this example:

Missing values for day:

shafiz_p_0-1739341309168.png

 

If fit line chart, it will show cutoffs:

shafiz_p_1-1739341374063.png

 

Try this similar pattern measure:

Measure = IF(
    SUM('Table'[Value]) = 0,
    0,
    SUM('Table'[Value])
)

 

Problem solved:

shafiz_p_2-1739341433257.png

 

Hope this helps!!

If this solved your problem, please accept it as a solution and a kudos!!

 

Best Regards,
Shahariar Hafiz

View solution in original post

uzuntasgokberk
Super User
Super User

Hello @Anonymous ,

 

Create Dim_Date table that includes MIN(date) and MAX(Date) or spesific year. Depending on your preference and make relationship with you table 1 to many. Finally, create the following measure:
"
test=
IF(ISBLANK([Sales]),0,[Sales])
"
Finally that will be X-axis is DimDate[Day] Y-Axis is the measure.

Kind Regards,
Gökberk Uzuntaş

📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!

🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |

View solution in original post

Anonymous
Not applicable

Hi @Anonymous ,

Based on the testing, creating the new table.

Table = GENERATESERIES(MIN(tes[DayNum]), MAX(tes[DayNum]),1)

vjiewumsft_0-1739414437555.png

Then, creating the new relationship between new table and tes table.

vjiewumsft_1-1739414471397.png

Creating the new measure to calculate the number.

Measure = 
var _reslut = CALCULATE(SUM('tes'[CPI]))
RETURN
_reslut + 0

Drag the new table column to the X-axis and drag the measure to the Y-axis.

vjiewumsft_4-1739414540994.png

vjiewumsft_5-1739414551865.png

 

Best Regards,

Wisdom Wu
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

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Assuming the day number on the X-axis is coming from the Calendar table, write this measure

Measure = coalesce([your measure],0)

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Anonymous ,

Based on the testing, creating the new table.

Table = GENERATESERIES(MIN(tes[DayNum]), MAX(tes[DayNum]),1)

vjiewumsft_0-1739414437555.png

Then, creating the new relationship between new table and tes table.

vjiewumsft_1-1739414471397.png

Creating the new measure to calculate the number.

Measure = 
var _reslut = CALCULATE(SUM('tes'[CPI]))
RETURN
_reslut + 0

Drag the new table column to the X-axis and drag the measure to the Y-axis.

vjiewumsft_4-1739414540994.png

vjiewumsft_5-1739414551865.png

 

Best Regards,

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

uzuntasgokberk
Super User
Super User

Hello @Anonymous ,

 

Create Dim_Date table that includes MIN(date) and MAX(Date) or spesific year. Depending on your preference and make relationship with you table 1 to many. Finally, create the following measure:
"
test=
IF(ISBLANK([Sales]),0,[Sales])
"
Finally that will be X-axis is DimDate[Day] Y-Axis is the measure.

Kind Regards,
Gökberk Uzuntaş

📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!

🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |

shafiz_p
Super User
Super User

Hi @Anonymous  Basically, if value in a perticular day is missing, line chart will cutofs there , unless you return 0 for that row. Try this example:

Missing values for day:

shafiz_p_0-1739341309168.png

 

If fit line chart, it will show cutoffs:

shafiz_p_1-1739341374063.png

 

Try this similar pattern measure:

Measure = IF(
    SUM('Table'[Value]) = 0,
    0,
    SUM('Table'[Value])
)

 

Problem solved:

shafiz_p_2-1739341433257.png

 

Hope this helps!!

If this solved your problem, please accept it as a solution and a kudos!!

 

Best Regards,
Shahariar Hafiz

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors