Forum Discussion
How to enable sorting by colour indicators in a table without labels
- 1 year ago
Thanks for your prompt response
Hi pabloignacio123 ,
Thank you for the detailed explanation earlier it was really helpful.
I’ve implemented the logic as discussed and have uploaded a sample PBIX file for your review. Could you please take a look and let us know if it’s working as expected, or if there’s anything that might need adjustment?
Looking forward to your feedback.
Best regards,
Lakshmi
Create a calculated column Status_Code based on Usage RangeStatus_Code =
SWITCH (
TRUE (),
[Usage_Range] >= 0.8, "V",
[Usage_Range] >= 0.5, "A",
"R")
Dear Lakshmi,
Thank you for your prompt response and for your willingness to help.
To clarify my question: I am working with a table visual in Power BI where I use conditional formatting (specifically colour indicators—green, yellow, and red) to reflect statuses such as “Usage Rate” or “Performance over the Last 3 Months.” These indicators are based on DAX measures that evaluate specific thresholds or trends.
The colours are displaying correctly; however, I’ve noticed that unless I show a numeric or text label within the cell, users are unable to sort the column by clicking on the header. My aim is to keep the table visually clean—showing only the coloured indicator (for example, a coloured circle or background)—but still allow sorting based on the logic that determines the colour.
Would you happen to know if there is a way to enable sorting in this context, perhaps by linking the conditional formatting logic to a hidden or supporting field?
Please let me know if it would be helpful to share a sample file. I’m happy to prepare one accordingly.
Best regards,
Pablo
Thanks for your prompt response
Hi pabloignacio123 ,
Thank you for the detailed explanation earlier it was really helpful.
I’ve implemented the logic as discussed and have uploaded a sample PBIX file for your review. Could you please take a look and let us know if it’s working as expected, or if there’s anything that might need adjustment?
Looking forward to your feedback.
Best regards,
Lakshmi
Create a calculated column Status_Code based on Usage Range
Status_Code =
SWITCH (
TRUE (),
[Usage_Range] >= 0.8, "V",
[Usage_Range] >= 0.5, "A",
"R")
- pabloignacio1231 year agoRegular Visitor
Hi Lakshmi,
That’s exactly what I needed — thank you very much for implementing the logic and for sharing the PBIX file.
I’ll review it shortly and get back to you with any observations or suggestions, if necessary.
Best regards,
Pablo- v-lgarikapat1 year agoCommunity Support
Hi pabloignacio123 ,
You're very welcome I'm glad to hear it met your needs.
Please feel free to reach out with any feedback or suggestions once you've had a chance to review the file. I'm happy to make any adjustments if needed.
Looking forward to hearing your thoughts.
Best regards,
Lakshmi