Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi there,
I currently have a stacked bar and line chart, and I'm requring a dynamic vertical line that represents the date: TODAY() that gradually moves across the x axis throughout the year.
I know you can add similar constant lines within line charts through the Analytics tab, but this is now unavailable due to the chart being a stacked bar and line.
Is there an alternative way to achieve this on the selected chart? I would really appreciate the advice!
Solved! Go to Solution.
Hi @Anonymous ,
Based on my test, after switching back to Line and Stacked column chart, the X-axis need to remove the Date hierarchy to make X-Axis constant line work.
As the screenshot shown, the original visual is drill down to Month, and the second visual is based on Day, so they are in the different hierarchies.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Based on my test, after switching back to Line and Stacked column chart, the X-axis need to remove the Date hierarchy to make X-Axis constant line work.
As the screenshot shown, the original visual is drill down to Month, and the second visual is based on Day, so they are in the different hierarchies.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey, is it possible to add a vertical line for today's date while keeping the date hierarchy intact? If it is possible, could you please provide a solution for the "line and stacked column" chart?
Hi there @Greg, thanks for the advice, really appreciate it.
Tried your guidance, the line has remained but it appears to have distorted the original column stacks, as below.
@Anonymous Switch to a Line chart. Add an X-Axis Constant Line in the Analytics pane based on a measure that returns today (TODAY()). Switch the visual to a stacked column and line chart. The X-Axis constant line should remain.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
64 | |
60 | |
51 | |
36 | |
36 |
User | Count |
---|---|
81 | |
72 | |
58 | |
45 | |
44 |