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
vojtechsima
Super User
Super User

Line Chart with Dynamic Vertical Lines (File Attached)

Hello guys,
I'd like to have the following chart:

vojtechsima_0-1660226810908.png

One continuous line with Sales Performance and then dynamic lines that would show me when the user attends training.

I have issues displaying those lines, for each user it can be different so I need a dynamic solution. 

I am attaching pbix file with the needed model.

Could someone please advise me on how to do it properly?

 





Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.
1 ACCEPTED SOLUTION

 

@lbendlin 
Yea, I am tied with the visual.
But I found a workaround, when I put a similar measure there and hide it, it looks thinner.

It's not the best solution but it works.

vojtechsima_0-1660571334361.png

 






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

View solution in original post

6 REPLIES 6
lbendlin
Super User
Super User

 for each user it can be different

Are you expecting to control this via RLS, or USERPRINCIPALNAME by itself? Outside of these option Power BI would not know which user is looking at it.

@lbendlin 
well not really, I would use Single Select Slicer.

 

Please note, I need to use Year, Month hierarchy and with that I am only able to get workaround like this, but I need the columns to be way thinner, as this doesn'T look that great.

vojtechsima_0-1660494609163.png

 

 





Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

This seems to work - please check.

Thank you.
I was able to re-create this workaround as well using the Date column.
But it's not really applicable as I need to use the Year, Month hierarchy.

Any other idea? @lbendlin 

 





Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

I think it is acceptable on Month level.  For year level a table visual may be more appropriate.

 

@lbendlin 
Yea, I am tied with the visual.
But I found a workaround, when I put a similar measure there and hide it, it looks thinner.

It's not the best solution but it works.

vojtechsima_0-1660571334361.png

 






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

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.