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
Anonymous
Not applicable

Unable to show all x-axis single date values

Hi

 

Hoping someone might be able to help me!

 

I have a measure which calculates the number of people sick per day. I'm trying to plot this by each single day on a simple line graph. I'm using the date field from my date table in the x-axis and setting this to categorical, but the graph only ever shows the month end date and not each single day?

 

Does anyone know what the solution might be?

 

What's strange is if i store the number of sick days as a calculated column in the date table, it works fine. But this won't work as a solution as i need to filter the data by different variables

3 REPLIES 3
Mkarwa-123
Resolver II
Resolver II

@Anonymous  it seems you have 2 dates in sickness table and you are trying to compare 2 dates with single date in date table.  These 2 dates can't have active relationship with date table. 
which  date has active relationship between date and sickness ?

 
Mkarwa-123
Resolver II
Resolver II

@Anonymous  Add 0 to your sick days measure when there is no data for any date. It will help you to show all x-axis dates.

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

Anonymous
Not applicable

@Mkarwa-123 thanks, this wasn't quite what i was after. However what it has done is highlight some sort of error in my calculation for sick days, where it's only calcualting the sickness for the last day of the month and not every single day.

 

Sick_per_day =
SUMX(filter(Date_table,Date_table[Is_Weekday]=1), COUNTROWS(filter(Sickness, Sickness[Absence Start Date]<=Date_table[Date] && (Sickness[Absence_end_date_NonBlank] >=Date_table[Date]))))
 
Any ideas?

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