Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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
Solved! Go to Solution.
Thanks @v-yajiewan-msft ,
Got it sorted based on this video from Amit Chandak
Thanks @v-yajiewan-msft ,
Got it sorted based on this video from Amit Chandak
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
The way to get the Max date of a slicer would be something like:
Max Selected Date = CALCULATE(MAX(Table[Date]), ALLSELECTED(Table[Date]))
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
85 | |
70 | |
68 | |
51 | |
32 |
User | Count |
---|---|
115 | |
100 | |
74 | |
65 | |
40 |