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
Winniethewinner
Helper III
Helper III

Month Order for a calculated dimension table

Hi Everyone, 

I created a calculated dimension table and use it to dynamically switch the axis in the chart. Here is the calculated table DAX:

2022-06-13_10-06-28.png

And here is the chart, which is switched based on the axis on the left:

2022-06-13_10-24-24.png

 

The question I have is, the months are 7-month forwarding, i.e. I will have 07,08,09,10,11,12,01 as the next, how can I sort it properly for those months? 

(because I use the calculated table for "Month" attribute, those values 07,09,09,10,11,12,01 are in text format)

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi  @Winniethewinner 

Thanks for reaching out to us.

>>The question I have is, the months are 7-month forwarding, i.e. I will have 07,08,09,10,11,12,01 as the next

Because they are in text form, they cannot be sorted by themselves, so you can try sort by columnSort one column by another column in Power BI - Power BI | Microsoft Docs

Or you can try this one, use year-month column, for example,

vxiaotang_0-1655363918097.png

vxiaotang_1-1655363951872.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi  @Winniethewinner 

Thanks for reaching out to us.

>>The question I have is, the months are 7-month forwarding, i.e. I will have 07,08,09,10,11,12,01 as the next

Because they are in text form, they cannot be sorted by themselves, so you can try sort by columnSort one column by another column in Power BI - Power BI | Microsoft Docs

Or you can try this one, use year-month column, for example,

vxiaotang_0-1655363918097.png

vxiaotang_1-1655363951872.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Thanks @v-xiaotang . I'm uploading this sample data - I'd like to sort the month properly when switching to month dimension.  if I create a separate Month_table, how do I link it to the DimTable which also have other dimensions and values? Another thing is when I add relationship using Index between 2x tables, the autosum (sigma) disappears, any idea why? Thanks in advanced. 

2022-06-17_13-58-37.png

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.

Top Solution Authors