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
Jay2022
Helper IV
Helper IV

Line graph showing all months in X axis even when data is not present

I have a table with dates in one column and %s in another. I'm trying to create a line graph however the line graph is going from November 24 to March 25 etc and i want it to show january february etc even if there is no data for those months (no dates over those periods and no %s) any suggestions ?

4 REPLIES 4
Anonymous
Not applicable

Hi, @Jay2022 

 

Have you solved your problem yet? According to @MFelix , you can try the following.

Example data:

vzhangtinmsft_0-1734923761753.png

Date table:

Date = CALENDAR(MIN('Table'[Date]),MAX('Table'[Date]))

vzhangtinmsft_3-1734923908411.png

vzhangtinmsft_1-1734923799065.pngvzhangtinmsft_2-1734923808765.png

Is this the result you expected?

 

Best Regards,

Community Support Team _Charlotte

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

 

Anonymous
Not applicable

Use CALCULATE like

 

Calculate([Measure], ALL(Dates[Date]))

what does ([Measure] relate to ?

MFelix
Super User
Super User

Hi @Jay2022 ,

 

For this you need to create a calendar dimension table related with your fact table and then on the visualization select the option show values with no data. Be aware that if your line graph has the year and the months it will show for all the values so you need to be carefull with the setup of the chart interactions and filters.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



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