Forum Discussion
Sorting Matrix Data Based on Slicer Selection
- Anonymous1 year ago
Hi Madhu7624 ,
Thanks for the reply from BeaBF .
First, create a calculated column to extract the number of products.
ProductNumber = VALUE( MID('Table'[Product],2,2) )Then, create a calculated column to sort the numbers.
Order = RANKX( FILTER( 'Table', 'Table'[Year] = EARLIER('Table'[Year]) ), 'Table'[ProductNumber], , ASC, DENSE )Please create a matrix visual object for display. Drag Oder to the rows, Year to the columns, and Product to the values. the final visual is shown below:
The pbix file is attached.
If you have any other questions please feel free to contact me.
Best Regards,
Yang
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Hi Madhu7624 ,
Thanks for the reply from BeaBF .
First, create a calculated column to extract the number of products.
ProductNumber =
VALUE(
MID('Table'[Product],2,2)
)
Then, create a calculated column to sort the numbers.
Order =
RANKX(
FILTER(
'Table',
'Table'[Year] = EARLIER('Table'[Year])
),
'Table'[ProductNumber],
,
ASC,
DENSE
)
Please create a matrix visual object for display. Drag Oder to the rows, Year to the columns, and Product to the values. the final visual is shown below:
The pbix file is attached.
If you have any other questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
- BeaBF1 year agoSuper User
Anonymous Yes but the RANKX is significantly more computationally expensive and resource-intensive compared to a simple sort by column operation, I recommend to use my process.
BBF