Looks like this challenge was of moderate difficulty. Let's start with the challenge.
First, create a calculation for Cost.
SUM([Sales])-SUM([Profit])
Add Measure Values to columns and add Measure Name to filter.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8NPHpQML23PEGraqugA8W7NfbZcIC-MJjZGbfRxv7BpVAwkpWehQ9M0BV8g6sWDf2g5bEXhafAExqT4CbBaWN0Jx8aAanHaqh95DYeK6g9FtKg72SY7oVd-gbMG-26WpgiCAVkROo3bNl/w640-h285/Step+1.png)
Create a calculation for Coloring the Lines.
Color Profit
SIGN(SUM([Profit]))
Change it to Discrete, and drag it to the Color Marks Card.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1qD9Vkm2yliYxPHsWEYD4cJtcKVXCr6sscsW8oOYAqsCR-FoWX4iDz8MHiN0GK0lIOX7fegE3bW65oI-CRw8IdGSarwkj_by-y4K1aFJwtwMM08nMnxrVRDcp_cntU07TzwUospsLMcye/s0/Step+2.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWkv5BQxpsux-qaEj5cdHnVRvDbYj4Ft_XoRI5h0RlPawGWzXW_juhF2utXl9Y-9I6MI6u04NqWA8ZjwTmTVRew2LirvXRezaS4zEq_xJiK-1Cb6b9oPlkybS9_IeIAjLAzXAtsPTeNOrZ/w640-h350/Step+3.png)
If you replace Color Profit with Measure Names, it will work for the first requirement (Level 1) where you do not need any border or you can keep the same border for both the circles. If you want to stay with Level 1 Continue to the next step, but if you are trying to create level 2, there is an extra step in between.
Extra step: Create a duplicate calculation of Cost with the name [Cost for Border]. And add this calculation to the Measure Values along with Cost and Sales. Also, add [Color Profit] calculation to the color card of 2nd Measure Values along with Measure Names. Now there are 2 color pills on the 2nd Measure Values color card. (How to do this: First add [Color Profit] to Details, then click on 3 dots next to the [Color Profit] Pill and change the type to Color.)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYuCNh7p7rQtzml263BCfxbE6_I-ZcuOG06tO-EnrLuknfyVgpZtyGrgiUhzlma6abqnJxA2INXA9lDTYivGM4SuwZadW-Pn0xwv55qg0s8Yskmae3F9bRpU5bZJSiPviVnYgqCLmjPGet/s320/Step+4.1.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0AlsJjaYixQvLzPDJt_aLYDMEr_0_fQfPc3M_T3k5Zg1OOfsFbOcb5vCvle6sNKRFLTRYRD0xsGAt21IaLgMCMMEZ7_Sx6ZJrgB7K6JXBUjnET9KR_pUJe9DzylqH0ugoKplP5KetiFAC/s0/Step+4.png)
Now a few more steps to achieve the view: Make both the Measure Values as dual-axis, Synchronize Axis, Adjust the color of the Measure Values, Adjust the size of line and circles. And you are 95% done.
The last step is to add a centered line to all the Subcategories. If you have noticed, the default table structure is to have lines above and below the categories (Called Column Dividers).
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaKQ95-Hn3JyVv1ClVv5vQBwaokDC_aLdeIPanhdsCrjKfrXfaUCUnjzgqP6MZ83NVwqyeTGtIHUJpoVFzXshAlHczLiWsj-5y22UV_gZnAbp4R8WK9uVjnlcVymvexqqt70i0QZkvgs7h/w400-h284/Step+6.png)
To achieve this, Create a min(0.0) calculation in rows. This will give you an axis as a 0 line passing from the center of the Subcategories name. Now you can hide the table Dividers and do some formatting.
Finally, do the below settings for your labels.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpKTV_y24bqTcktXTysHUTO_Kc-sikct02alsYf93ouO0MBs1XavNDIWtAzlBWy3QCHEUWTgC8nADY8TSCtO0pdn-eXFgWj_QLnTfgxSuRfHp91Ajm-OQ4W9QMvl9riY_alyDDwaRuPi8I/s320/Step+7.png)
This is your final view. Check the visualization here.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi25B9R6Sn5_8t6zBAXpH9-L5bC9uouPmLZCKu3XT7FBMtZ5yfAIz6cOx73YsNyqI-A1P8ef0G1sYlFI2Td7tSecUaZjPkWl27inZ2Ogjxz45LZIGR00wWgMA4xyjPEN_btaVGgXOvEoKS6/w568-h640/%2523WOW2020+W50.png)
Post a Comment