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.
Hi,
I am trying to add a Trend Line to a Line and clustered column chart as below.
Is it possible to create a trend line using DAX like the one in Excel?
"avg of ph average Roll" data need to be used for the trend line.
Any thoughts / help greatly appreciated!
Here is my sample data
@soogiang , You can use the analytics pane Constant line of Avg Line
I have an example for scatter here
Power BI Customer to Retain, Scatter Quadrant -Segment in 4 quadrants based on Margin % and Discount, Use Constant Line- https://youtu.be/0k_C_E7YOQY
I am seeing Error bars option only. I dont think the analytics pane is available in my line and cluster column chart. any idea?
@soogiang , You can try measures like
Measure = CALCULATE(AVERAGE('Table'[Average of Time]), ALLSELECTED())
or
Measure = CALCULATE(AVERAGE('Table'[Ph Average Roll]), ALLSELECTED())
your measure added a constant line, but it is not a correct trend line.
User | Count |
---|---|
98 | |
76 | |
76 | |
48 | |
26 |