Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi all,
I am trying to sort a table containing product production per month. I want the top row to have the product which was produced in largest amount in latest/current month. When I do traditional sort by column, I am getting rows sorted according to sum of values of all months. Is there any way to achieve desired output below?
Months are in one measure
Data:
| Product | Oct | Nov | Dec | Jan |
| A | 2 | 6 | 2 | 2 |
| B | 3 | 2 | 1 | 4 |
| C | 2 | 4 | 1 | 2 |
Desired output:
| Product | Oct | Nov | Dec | Jan |
| B | 3 | 2 | 1 | 4 |
| A | 2 | 6 | 2 | 2 |
| C | 2 | 4 | 1 | 1 |
Solved! Go to Solution.
@Oldnewbie in this case you can achieve it by creating a calcualted table like below. You can apply year and month filter based on the current date and make filter dynamic as well.
in this case i have order table which has transactional level data for each product and its category. from this table i have creted a summarize table like below
you can sort the above table on the rank category
then you can link this table to your main order table,
then in your matrix visual you can use the category from the newly created table and data will be sorted based on the data in the new table.
have attached the pbix file as well.
Proud to be a Super User!
My requirement to make dynamic...
you have to use year = 2022 and month = 12
Can you please elaborate this and suggest solution.
Thanks in advance
@Oldnewbie in this case you can achieve it by creating a calcualted table like below. You can apply year and month filter based on the current date and make filter dynamic as well.
in this case i have order table which has transactional level data for each product and its category. from this table i have creted a summarize table like below
you can sort the above table on the rank category
then you can link this table to your main order table,
then in your matrix visual you can use the category from the newly created table and data will be sorted based on the data in the new table.
have attached the pbix file as well.
Proud to be a Super User!
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 35 | |
| 23 | |
| 22 |
| User | Count |
|---|---|
| 134 | |
| 103 | |
| 57 | |
| 43 | |
| 38 |