Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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:
And here is the chart, which is switched based on the axis on the left:
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)
Solved! Go to Solution.
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 column. Sort one column by another column in Power BI - Power BI | Microsoft Docs
Or you can try this one, use year-month column, for example,
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 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 column. Sort one column by another column in Power BI - Power BI | Microsoft Docs
Or you can try this one, use year-month column, for example,
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
12 | |
10 | |
10 | |
9 |
User | Count |
---|---|
16 | |
15 | |
15 | |
13 | |
11 |