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!View all the Fabric Data Days sessions on demand. View schedule
Hi,
How can I add a trendline into a graph where the Axis are the dates(Year and month), but is established as text(unable to change it to date) and could add the trendline?
this is my calendar date:
Hi @alexcatala ,
It seems like as long as the type of Year-month column is Date, it could be solved...
How about copying the original Date column and format it as yyyy-mm directly in Column Tools tab like this:
Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.
Best Regards,
Eyelyn Qin
@alexcatala , In case you need a continuous line, you have to plot it on the date. Maybe you can try on YYYYMM (Data type Int)
Do you mean change the current Year_month? or make an extra one?
If so what would you think it will be the best formula.
Do you mind to have a look at this issue?
As mentioned above I cant add a trendline as the date I used as the axis is with the format (TEXT). I use Year and month, but cant is saved as date as it is not valid.
To be able to add a trendline it has to change the x type from categorical into continuous. Unfortunately, it pops this message and can't add the continuous type.
Any suggestion?
Thanks for your time!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!