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 Line Chart that looks like this:
I want to show monthly data but right now the x-axis is showing bi-weekly data.
In my x-axis, I have the Exit Date (which is in a standard date format - e.g. October 26, 2021). For my Values, I am doing a Distinct Count of Client IDs. I was wondering, is there a way to change the x-axis so that only the months are shown? So instead of having Sep 12, Sep 26, Oct 10, Oct 24, the axis should show Aug 2021, Sep 2021, Oct 2021....etc.
Please note that I have turned off Date/Time Intelligence to save space in my report. If someone could please help me figure out how to change the x-axis to show month only, that would be great. Thank you
Solved! Go to Solution.
Hi @OPS-MLTSD
You can add a Year Month column to your table with "mmm yyyy" format. Use this column to replace Exit Date column on Axis.
Year Month = FORMAT('Table'[Date],"mmm yyyy")
As this Year Month column is of Text type and is sorted alphabetically, you could add another column like YearMonthNumber = YEAR('Table'[Date])*100+MONTH('Table'[Date]) and sort Year Month column by YearMonthNumber column, then it will display in month order on X axis. See Sort one column by another column in Power BI Desktop
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
I have not accepted a solution yet, I am not sure why this was chosen as a solution. I have tried to create a Year Month in my primary table but it did not work for me. I have other tables linked to the primary table. I have looked online to creating a separate Date Dim table, which is what I am working on right now
Hi @OPS-MLTSD
You can add a Year Month column to your table with "mmm yyyy" format. Use this column to replace Exit Date column on Axis.
Year Month = FORMAT('Table'[Date],"mmm yyyy")
As this Year Month column is of Text type and is sorted alphabetically, you could add another column like YearMonthNumber = YEAR('Table'[Date])*100+MONTH('Table'[Date]) and sort Year Month column by YearMonthNumber column, then it will display in month order on X axis. See Sort one column by another column in Power BI Desktop
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
thank you! I will try this and get back to you shortly
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 |
---|---|
111 | |
97 | |
82 | |
67 | |
61 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |