Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I am using a line graph in Power BI where I need to pass the constant line value from my one of my table field. However why i try to add a constant line, it is allowing me only to hard code the value.
How to pass it from a measure or table column ?
Hi @Anonymous ,
It's impossible to pass a measure or a field to a constant line, so you'll need a different approach.
As a workaround, you can use the field of constant line as legend in line chart. Please refer to https://stackoverflow.com/questions/53212642/add-a-dynamic-constant-line-based-on-column-in-powerbi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
@Anonymous , not very clear , you can create a measure
m1 =10
or you can create a what if parameter and use that