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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
UncleLewis
Responsive Resident
Responsive Resident

X Axis 15 Months

Hi all,

Using PBID Aug 2024.

How can I get 15 months on x axis even when user only selects 12 months from slicer
The max date should be the max date the user selectes from the slicer.

My slicer has 3 years 21, 22, 23 with respective quarters
User may select any combination they want - though most common will be current / most recent year.

I selected 2021 from the slicer so the MaxDate to return on 15 month charts is 12/31/2021.
But I am getting 12/31/2023.

Is there any way to get to get the max date the user selected so I can calculate the 15 month span?

Thanks,
w

1 ACCEPTED SOLUTION
UncleLewis
Responsive Resident
Responsive Resident

Thanks @Anonymous ,

Got it sorted based on this video from Amit Chandak

Use 2nd Date Table - disconnected
Use 2nd Date Table for User Slicer Selection

Thanks,
-w

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar question in the attached PBI file.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
UncleLewis
Responsive Resident
Responsive Resident

Thanks @Anonymous ,

Got it sorted based on this video from Amit Chandak

Use 2nd Date Table - disconnected
Use 2nd Date Table for User Slicer Selection

Thanks,
-w
Anonymous
Not applicable

Hi @UncleLewis , hello vicky_, thank you for your prompt reply!

For better understanding and testing, please provide a pbix example that completely covers your issue or question.

 

Do not include sensitive information or anything not related to the issue or question.

 

If you are unsure how to upload data please refer to How to provide sample data in the Power BI Forum - Microsoft Fabric Community

 

 

 

 

 

vicky_
Super User
Super User

The way to get the Max date of a slicer would be something like:

Max Selected Date = CALCULATE(MAX(Table[Date]), ALLSELECTED(Table[Date]))
UncleLewis
Responsive Resident
Responsive Resident

Thanks @vicky_ ,

Yes, that works if the visual interaction is on from the Slicer to the Column Chart
But I turned the interaction off because I always want to display 15 months on the Colum Chart even though the user might select 12 months (Year) from the hierarchy slicer ( Year |Quarter ).

Thanks,
-w

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

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