Sometimes we want to create an exceptions UI that is beyond the regular options of the tool.
Specifically, something like this:
Let's see what was created by default and what is a customization...
To create the square near the "% profit" I used the standard Conditional Formatting:

Added an icon:
Add a note (you see it at the top right of the first image, only for the first line):
Since in the previous screen "Show rule condition" is marked, the Legend appears as well:
Now what about the extra column with the red and green squares?
Since I don't have this visualization built-in, I created a dynamic column, with the following calculation:
case
when @calculation("profit") < 0.1 then 'π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯'
when @calculation("profit") < 0.2 then 'π₯π₯π₯π₯π₯π₯π₯π₯π₯π©'
when @calculation("profit") < 0.3 then 'π₯π₯π₯π₯π₯π₯π₯π₯π©π©'
when @calculation("profit") < 0.4 then 'π₯π₯π₯π₯π₯π₯π₯π©π©π©'
when @calculation("profit") < 0.5 then 'π₯π₯π₯π₯π₯π₯π©π©π©π©'
when @calculation("profit") < 0.6 then 'π₯π₯π₯π₯π₯π©π©π©π©π©'
when @calculation("profit") < 0.7 then 'π₯π₯π₯π₯π©π©π©π©π©π©'
when @calculation("profit") < 0.8 then 'π₯π₯π₯π©π©π©π©π©π©π©'
when @calculation("profit") < 0.9 then 'π₯π₯π©π©π©π©π©π©π©π©'
when @calculation("profit") < 1.0 then 'π₯π©π©π©π©π©π©π©π©π©'
else 'π©π©π©π©π©π©π©π©π©π©' end
How does it work? The red square and many others are valid characters... I only use them. See examples here:
https://unicodeplus.com/U+1F7E5
or here:
https://www.compart.com/en/unicode/U+1F7E9
The remaining problem is the Oracle Analytics automatic column width. The above-mentioned squares need more space than regular character.
As a "quick and dirty" work around I forced a longer column title:
You can always use "hard space" to force the longer header. Like this: " The percent of profit"
Copy/Paste from the blog wouldn't work here, but you can always create a hard space by holding the "ALT" key and pressing 255.
The same calculation works here as well (Watchlist UI):
Useful examples:
Orange Circle 1F7E0 - π
Yellow Circle 1F7E1 - π‘
Green Circle 1F7E2 - π’
Purple Circle 1F7E3 - π£
Brown Circle 1F7E4 - π€
Red Sq. 1F7E5 - π₯
Blue Sq. 1F7E6 - π¦
Orange Sq. 1F7E7 - π§
Yellow Sq. 1F7E8 - π¨
Green Sq. 1F7E9 - π©
Purple Sq. 1F7EA - πͺ
Brown Sq. 1F7EB - π«
Blue Heart 1F499 - π
Green Heart 1F49A - π
Yellow Heart 1F49B - π
Purple Heart 1F49C - π
Heart Decor 1F49F - π
White star 2B50 - ⭐
Manual W-Chair 1F9BD - 𦽠267F - ♿
Nine Branches 1F54E - π
No comments:
Post a Comment