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.
Hello,
I have a chart with a trendline, but for some reason my months are only displaying the even #'s (See pic).
Anyone have any advice on how to display all the month #'s, 1 through12? For example, display the odd #'s too.
Hi,
instead of numbers you could show month names.
Create a new column (I assume 'Date' table) with this DAX:
I'm sorry, just realized the new formula's should be used as a filter. But how should the filter be used?
Hi @jonnyA ,
According to the internal logic of the powerbi desktop, trendlines can only be applied on the CONTINUOUS x-axis. But I suggest you can create two measures, one for odd months and another for even months, and put them in the filter. The reference is as follows:
M_ = IF(MOD(MAX('Table (2)'[Month]),2)=1,1,0)
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@v-henryk-mstf you said create 2 measures, but im only seeing 1 measure you offered.
Hi @jonnyA ,
If it is an odd month, create the first formula; if it is an even month, create the second formula.
M_1 = IF(MOD(MAX('Table (2)'[Month]),2)=1,1,0)
M_2 = IF(MOD(MAX('Table (2)'[Month]),2)=0,1,0)
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @jonnyA
Can you change the "Continuous" to "Categorical" in the options on your visual (i.e. in your screenshot).
This will fix the issue.
Thanks,
Theo 🙂
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
@TheoC , When changing to "Categorical" the trend line disappears and I dont see any way to add it back.
No option to add trend line when changing to Categorical.
Hi @jonnyA
I don't believe it's possible. It has been added as an idea but I don't believe it has yet been accepted.
You can vote here: https://ideas.powerbi.com/ideas/idea/?ideaid=7c6f5e01-e034-45ca-b638-7d14d6816435
Sorry for the unfavourable outcome... for now.
Theo
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |