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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
me418
Regular Visitor

Adding Trend line by using DAX

Hi,

 

I really want to add Trend lines here using DAX , the same as using TREND function in Excel.

I'm very new to DAX, would you please let me know how to write DAX formula to add trend line?

Thank you. 

 

me418_0-1633600324114.png

 

3 REPLIES 3
amitchandak
Super User
Super User

@me418 , Thre dotted lines?

 

You can add a constant lines from the analytics pane.

 

In the newer version, you can use a measure in that

Hi,

 

Thank you for your suggestions.

After updating Power BI version, I can see Constant line under Analytics menu,

But it's constant line which is different what I need. 

I need to add Trend line in this visual like in Excel.

Do you know if it's possible to add Trend line although the data format is not date? 

 

Hi @me418 

I think you want to create a trend line by dax like in excel. 

Here I find a post with same requirement like yours, and I hope it could help you.

For reference: DAX to create a Trend line?

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors