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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.