Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
hedychen
Contributor II
Contributor II

Why Heatmap Custom Sorting not working?

Hello,

I wanted to sort one of the dimensions called "Likelihood" exactly as "Low" "Medium" "High"...  My formula was "Match ([Likelihood], 'Low', 'Medium', 'High')"  but it never worked as expected (see attached screenshot)...

Can anyone let me know what went wrong, and how can I fix this issue?Heatmap Custom Sorting issueHeatmap Custom Sorting issue

1 Solution

Accepted Solutions
mikaelsc
Specialist
Specialist

you don't use dual for sorting ! you just use the dual value as dimension ! 

colors can be changed in appearance>design

View solution in original post

6 Replies
tresesco
MVP
MVP

@hedychen  Will you be able to share your sample app to check?

hedychen
Contributor II
Contributor II
Author

Hello,
I'm just wondering, is it the "Ascending"/"Descending" option right below "Sort by Expression" that overrides my formula "Match ([Likelihood], 'Low', 'Medium', 'High')"? If so, this option cannot be unchecked, and how could I make sure my formula working as expected?

Heapmap sorting issueHeapmap sorting issue

mikaelsc
Specialist
Specialist

in nov 2020 the option to sort by expression is has been removed... 

more generally, in case of dimensions you want to sort according to their "natural order", i tend to prefer creating dual( ) dimension values: 

create an excel, 2 columns, valueNum and valueText and load dual(valueText,valueNum) as ValueDual

most of time (all?) sorting will happen on num value, but the text value will be used as label. 

hedychen
Contributor II
Contributor II
Author

Thank you so much!!  I tried your dual value method, and it worked well for Heatmap sorting.  

The question now is how and where to convert the valueNum to valueText (i.e. to show 'Low', 'Medium', 'High', instead of '1' '2' '3') in Heatmap?  I tried the Text () and Dual () formulas, but not working...

And how to define/customize the Heatmap color, e.g. I want Red in High/High area?

how to convert valueNum to valueTexthow to convert valueNum to valueText

mikaelsc
Specialist
Specialist

you don't use dual for sorting ! you just use the dual value as dimension ! 

colors can be changed in appearance>design

hedychen
Contributor II
Contributor II
Author

Thank you so much, truely appreciate it!!