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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

CONSTANT LINE STACKED BAR CHART

The bar plot shown below was created using Python and seperates the bars based on Today's date.

constant_line.PNG

I am able to recreate the stacked bar plot in Power BI but facing trouble while trying to add a constant line based on TODAY() horizontally.

This is what I get when I attempt to add a constant line

MaheshkumarSuma_0-1724684903447.png

These are my constant line settings ( Also I am not sure how to base the constant line using TODAY()'s date )

MaheshkumarSuma_1-1724684970157.png

Any help is appreciated. Thanks!!

1 ACCEPTED SOLUTION

lbendlin_2-1724698161826.png

 

 

Milestone column is sorted by Target Date column

 

View solution in original post

5 REPLIES 5
lbendlin
Super User
Super User

Your Y axis is text. How are you sorting that column?  You could add a fake "Today"  value without data (or a small amount) and then manipulate the sort order of the text values accordingly.

Anonymous
Not applicable

Can you please elaborate?

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

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 https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Anonymous
Not applicable

 

Sample_bar_plot.PNG

For the sample data (below) , a stacked bar plot would like the one pasted (above). I have sorted the axis in the ascending order of Target Date.
Expected result: Similar bar plot with constant line for today()

 

Sample Data: 

MilestoneTarget DateAccepted PointsTotal PointsRemaining Points
Project Kickoff2/1/2024305020
Design Phase3/15/2024456015
Dev Phase5/30/20247010030
Test Phase6/15/2024507020
User Acceptance Testing7/20/2024405010
Project Launch8/30/2024608020

lbendlin_2-1724698161826.png

 

 

Milestone column is sorted by Target Date column

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors