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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
yasbos
Resolver I
Resolver I

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.