March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hello everyone,
I have a slicer for "Period Selection" (Yearly, Quarterly, Monthly, Weekly and Daily).
The x-axis on my charts need to change as per the selection made from the slicer as follows:
Yearly -> display Month/Year e.g. Oct 2016, Nov 2016, etc. up to the current month Jun 2016
Quarterly -> display Quarter/Year e.g. Q1 2017, Q2 2017, etc.
Monthly -> same as for Yearly
Weekly -> display Month/Year/Week e.g. May 2017 W1, May 2017 W2, etc.
Daily -> display all dates in the current month e.g. 2017-06-01, 2017-06-02, etc.
I have all those dates in my Date Dimension.
How do I create the Axis Dimension to reflect the above slicer selection please?
Thanks in advance.
Kind regards,
Yogesh
Solved! Go to Solution.
Hi @Yogesh_NMH,
Here is an other similar thread which has provided a valid solution to dynamically show X-axis dimension.
Best regards,
Yuliana Gu
are you able to make it up? I am also looking for dynamic X-axis change based on the time range selection.
Hi, yes basically you need to have an axis table combining your axes and then make inactive relationships with your model and call them in your measures. This video explains this subject thoroughly :https://www.youtube.com/watch?v=DXo7G6PtiYE
@Yogesh_NMH why dont you create a hierarchy?
Proud to be a Super User!
@vanessafvg For some charts, I will, don't worry. The problem is, I need to reflect this Axis Dimension in several charts & KPI's as well.
I am also using the custom visual found here. So when the user selects Yearly, Quarterly, Monthly, etc, the Trend Axis in the KPI Indicator needs to also change accordingly.
Any idea on how to do this?
Thanks in advance.
Kind regards,
Yogesh
@Yogesh_NMH please post screen shots it really hard to visualise what you saying without providing examples and then also of what you actually wanting it to look like
Proud to be a Super User!
The column chart below uses a Date Hierarchy which enables the user to drill down Year->Quarter->Month->Week->Day.
However, for the KPI's below, you need to specify a Trend Axis.
By default I have used the column MonthInCalendar. However, this axis needs to be dynamic. In simple english:
Trend Axis =
IF Yearly OR Monthly THEN MonthInCalendar
ELSE IF Quarterly THEN QuarterInCalendar
ELSE IF Daily THEN DateInCalendar
ELSE MonthInCalendar (default)
@Yogesh_NMH never personally done it before but think these 2 links can help
http://www.leanx.eu/tutorials/dynamic-dimensions-in-power-bi
https://gqbi.wordpress.com/2017/01/24/power-bi-how-to-filter-slicers-dynamically/
Proud to be a Super User!
Hi @Yogesh_NMH,
Here is an other similar thread which has provided a valid solution to dynamically show X-axis dimension.
Best regards,
Yuliana Gu
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |