Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
Considering I have a database with a column "Actual date" (X axis) to be plotted with my "P Capacity" (Y Axis) and another column "Actitivty" (Legend), it is easy and straightforward to select a Stacked Column Chart.
Now I need to introduce a functionality where the user can select by how many days they want to shift the "Actual date" by using a slider and this should be added to the "Actual Dates" and then plotted.
Ex: Assuming the user selects 15 on the slider, the new values will be plotted from the 16th of January:
Unfortunately I am unable to create a link between the slider and the X axis. What I have been able to try is:
1. Introduce a new column that can add "X" number of days to the actual. Plot this new column as the X axis, so that when I manually change the value X in the formula, it works.
Formula:
Solved! Go to Solution.
Hi @Anton93 ,
Firstly we can't create a dynamic column, in other words, we can't use a dynamic measure in a calculated column.
According to your description "Assuming the user selects 15 on the slider, the new values will be plotted from the 16th of January", if you mean the visual will be filtered to 16 to 31, here's my solution.
Create a measure:
Measure =
IF ( MAX ( 'Table'[Actual date] ) > 'Parameter'[Parameter Value], 1, 0 )
Put the measure in visual filter and select show items when the value is 1.
After apply filter, get the result:
I attach my sample below for your reference.
Best regards,
Community Support Team_yanjiang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello Anton93,
If you have found the solution to your question above, could you please share it?
I have a similar query, I want to present a comparison of sales TY and LY on a Line Chart. But the event dates are off my one week. The date shift slicer would work perfect, similar as yours.
Hi @Anton93 ,
Firstly we can't create a dynamic column, in other words, we can't use a dynamic measure in a calculated column.
According to your description "Assuming the user selects 15 on the slider, the new values will be plotted from the 16th of January", if you mean the visual will be filtered to 16 to 31, here's my solution.
Create a measure:
Measure =
IF ( MAX ( 'Table'[Actual date] ) > 'Parameter'[Parameter Value], 1, 0 )
Put the measure in visual filter and select show items when the value is 1.
After apply filter, get the result:
I attach my sample below for your reference.
Best regards,
Community Support Team_yanjiang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
65 | |
64 | |
56 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |