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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
lphong
Regular Visitor

Graphs only display even or odd months text

Hello everyone,

 

I ran into this annoying issue but not sure how to fix it. I have a datekey table and created a column call BOM (beginning of month) with just simple function StartofMonth. The problem is when displaying the month on the graph, it only displays the text of one month and skip the other. 

 

For example: it only shows Mar 2017 and May 2017 but hid the April 2017. All the recommendations are highly appreciated. 

 

Graph.png

 

 

1 ACCEPTED SOLUTION
lphong
Regular Visitor

So I created column in my Datekey table FORMAT(DateKey[Date],"MMM")&" " &DateKey[Year] to show only Month and Year.

 

Then I set it to Categorial in the graph it works perfectly. Thanks for all the help. 

View solution in original post

6 REPLIES 6
lphong
Regular Visitor

So I created column in my Datekey table FORMAT(DateKey[Date],"MMM")&" " &DateKey[Year] to show only Month and Year.

 

Then I set it to Categorial in the graph it works perfectly. Thanks for all the help. 

v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @lphong,


Have you resolved your issue? Please mark the helpful reply as answer, or share your solution.

Thanks,
Angelia

Thanks @v-huizhn-msft

 

The only problem with your proposal is that if you format the column to Text, when you sort the month name, it will sort alphabetical. 

 

So I created a DateKey table with Date since 2011. Then I created a month/year column, Calendar(format[Date], "MMMM yyyy"). This will make sure my Month/year column can be sorted by timeline instead of alphabet letter. However, that's where it skipped the label of the months in between. 

 

I thought this was scaling issue but it still doesn't work when I tried to scale the visual bigger. 

 

Still looking for solution now. Should I file a bug for this?

v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @lphong,

As I tested, it will display all the value if the month data type is text. Please see the screenshot.

1.PNG
It's weird, please click the format buttom->X-axis, and check your Scale type. 

2.PNG

Best Regards,
Angelia

prateekraina
Memorable Member
Memorable Member

I think the issue exists in your dataset or relationships, If possible can you share images of how your data and relationships look like?

 

Thanks !!

I've tried as you suggested and only use the date on the same table (no releastionship involves). 

 

I went to Edit Query and transform the date colum to Start of Month but it still skips the lable of the months in between. 

 

Apparently I could convert the month name it to Text format but then it's only sortable aphabetically. Thanks for the help @prateekraina 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.