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
xFrankPBI
New Member

PowerBI Dynamic x-Axis Constant Line on Visuals

I have a Visual showing sales off product based on dates (already dynamic showing 3 months before date off certain product launch, filtered by country on the page)
On the same chart i wannt to add a X-Axis constant line where the line would show the product launch date (information stored in a column) but i can not get the value to show the date.

I also tried the following:

DynamicLaunchDate =
var vMaxDate = TODAY()
var vMinusDate = DATEDIFF(MAX('Launch dates'[RL_Date]), TODAY(), DAY)
var RL_Date = vMaxDate-vMinusDate
Return
RL_Date

Basically returning the original launch date value but when i select this field it shows an error and 0 information
Iv followed youtube videos where exactly the same solutions worked - is data format a problem here or what can it be?

https://www.youtube.com/watch?v=xla7M2Pv6v4 - video I'm referring to (difference being im not using a set - of days, rather a variable that changes based on product launch date)

Edit - the value is correct and showing;
in my visual i have:
1. Total sales off product split by channel
2. a Line showing total sales only (no split)
3. x axis is month

If i remove values 1 or 2 respectivly my x Constant line will show and work properly as i adjust the country filter

Is there system limitations that makes it unable to show both a x axis column, line and an extra line ? as i can allways show 2 at a time - as soon as i add the third i get an error

0 REPLIES 0

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.