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.
Hi everyone,
I have more than one problem I couldnt resolve by myself.
I have this matrix:
I would like to order by default year descending (2021, 2020, ...) but quarters and month ascending (1, 2, 3, ...)
I have tryed to modifythe query. I clicked on transform data:
And I ordered the table as I would like to have
The registry dimension_time is related to payment fact.
That was my first problem. Second one:
I would like to replace month number with month name. I have created a new column in this way:
```
```
In my date hierarchy I have replace month with my new column month_name:
But now it order month by name:
Any idea how can I solve this other problem?
Last thing.... I am using direct query, not import.
Thank you
Solved! Go to Solution.
Hi @Simone2004 ,
For your first problem, try this:
Put column [Year] into "Rows" field and sort descending. Then put [Quarter] and [Month] columns into "Rows" field and you'll get what you want.
For your second problem, it is needed to sort [month_name] column by [month] column like so:
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Simone2004 ,
For your first problem, try this:
Put column [Year] into "Rows" field and sort descending. Then put [Quarter] and [Month] columns into "Rows" field and you'll get what you want.
For your second problem, it is needed to sort [month_name] column by [month] column like so:
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Simone2004 , For that you create a desc sort column for year
new columns
year 1 = [year]
year sort = rankx('Date', [Year],,desc,dense)
Mark Year Sort as sort column for year 1 and use year 1 in your visual
How to Create Sort Column and Solve Related Errors: https://youtu.be/KK1zu4MBb-c
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 |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |