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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
yasbos
Resolver II
Resolver II

Limit Months in x Axis to Current Month

I can't figure out why the X axis shows September, to December, when I have no data for them in my table. I should see the graph from Jan to August only. I looked in the advanced filtering, but it doesn't give me useful criteria. Any help would be appreciated.

 

yasbos_0-1659849201773.png

 

1 ACCEPTED SOLUTION
Vera_33
Resident Rockstar
Resident Rockstar

Hi @yasbos 

 

Not sure if you generate the Calendar table by CALENDARAUTO, you can limit the Calendar to end at the Max date of your fact table if you want to. Or go to your current Calendar table, add a column like IF([Month]<=MONTH(yourFactTableMaxDate), 1,0)  -  just explaining logic, then use this column as a filter.

View solution in original post

4 REPLIES 4
Vera_33
Resident Rockstar
Resident Rockstar

@yasbos 

 

Is the Month in X axis coming from a dim Calendar table not your fact table? You can add a column there to limit it to the current month, then add as a visual level filter.

Thanks so much, @Vera_33 . Yes, indeed, it's coming from a dim table. I'm not sure, though, that I understand your solution. Thanks so much.
P.s. I'm going to sleep  now, so I probably won't see any responses until a few hours later. 

Vera_33
Resident Rockstar
Resident Rockstar

Hi @yasbos 

 

Not sure if you generate the Calendar table by CALENDARAUTO, you can limit the Calendar to end at the Max date of your fact table if you want to. Or go to your current Calendar table, add a column like IF([Month]<=MONTH(yourFactTableMaxDate), 1,0)  -  just explaining logic, then use this column as a filter.

Thanks @Vera_33
That works, but, you see, what is mind boggling is that everything works fine on another graph that uses this same calendar table but with another fact table!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.