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

EOMONTH between Charts and Table

Hi Team,

 

Can some one help me why the monthe name is showing difference between Table and Chart. I have calculated the month using the EOMONTH function. The November Month data is showing as December in Charts which is wrong.

 

RanjanThammaiah_0-1637041240281.png

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @RanjanThammaiah 

 

When a column is of date type and on x axis of a column chart, it will choose Continuous type for x axis by default and adjust axis text automatically instead of showing the exact values in the column.

 

To change the axis text, one workaround is to change x axis type from Continuous to Categorical. Another is to change this column from Date type to Text type manually (or using Format function as Amit has suggested because Format function returns value in Text type too). Both will display exact column values on the axis. 

21111901.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @RanjanThammaiah 

 

When a column is of date type and on x axis of a column chart, it will choose Continuous type for x axis by default and adjust axis text automatically instead of showing the exact values in the column.

 

To change the axis text, one workaround is to change x axis type from Continuous to Categorical. Another is to change this column from Date type to Text type manually (or using Format function as Amit has suggested because Format function returns value in Text type too). Both will display exact column values on the axis. 

21111901.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

amitchandak
Super User
Super User

@RanjanThammaiah , Hope you have done like

 

Month year = format(eomonth([Date], 0), "mmm-yyyy" )

 

0 for current month end date

RanjanThammaiah_0-1637070622828.png

This is how i have been added the month end date, is there anything wrong?

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.