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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
unknown_anony
Helper II
Helper II

Trend chart display bug

Hi,
 I am preparing a trend chart,

unknown_anony_0-1728040148933.png


in the data set i have value for only 2023 Dec, and Jan-Aug 2024, but in the above chart i am getting Dec in X axis for the year 2024
I have prepared a dimensiona calendar table by the below dax,

Calendar = CALENDAR([Startdate],[Enddate])
StartDate  and end Date is calculated from the facts table by MIN(), MAX() Function on the date column respectively, and i have passed the calulated date column in the above trend chart(X-Asix)
Is the calendar function causing an issue?
Any suggestion how to overcome this issue
Thank you
 
1 ACCEPTED SOLUTION
Kedar_Pande
Super User
Super User

Create Calendar Table

Calendar =
VAR MinFactDate = MIN('FactsTable'[DateColumn])
VAR MaxFactDate = MAX('FactsTable'[DateColumn])
RETURN
CALENDAR(MinFactDate, MaxFactDate)

Create a measure that calculates data points only for dates that exist in your fact table:

Filtered Values = 
CALCULATE(
SUM('FactsTable'[Value]),
NOT(ISBLANK('FactsTable'[Value]))
)


If this helped, a Kudos 👍 or Solution mark would be great!
Cheers,
Kedar Pande
www.linkedin.com/in/kedar-pande

View solution in original post

1 REPLY 1
Kedar_Pande
Super User
Super User

Create Calendar Table

Calendar =
VAR MinFactDate = MIN('FactsTable'[DateColumn])
VAR MaxFactDate = MAX('FactsTable'[DateColumn])
RETURN
CALENDAR(MinFactDate, MaxFactDate)

Create a measure that calculates data points only for dates that exist in your fact table:

Filtered Values = 
CALCULATE(
SUM('FactsTable'[Value]),
NOT(ISBLANK('FactsTable'[Value]))
)


If this helped, a Kudos 👍 or Solution mark would be great!
Cheers,
Kedar Pande
www.linkedin.com/in/kedar-pande

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.