Color Formatting Pivot table
I have a pivot table that shows the sales by location for each month. I need to highlight the maximum sales month for each location. I have used Html conditioning formatting on a single column, but since this is a row-level comparison I am not sure how it can be done.
Here's what I have
Here's the desired output
I am comfortable writing SQL so open to dataflow transformation ideas as well.
Comments
-
Hi @domo_card
Currently the Pivot table card doesn't support HTML markup like the normal or mega tables do.
You could sort of create your own pivot table within a MySQL or Magic ETL however you have to maintain the columns yourself and is a prohibitive hassle to attempt to keep it up to date (especially with dates) so it's not really a viable option. Not to metion you also lose the ability for filters to affect your underlying data in the card.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
Hi @domo_card
I had a similar dilema recently and I think this may be an acceptable solution for you as well. This solution uses the Heatmap chart type and a calculated field. *Note use the Heatmap chart under Other Chart, NOT the Heatmap table.
Create a calculated field comparing the max partitioned value to the value.
Example: CASE WHEN `Value` = MAX(MAX(`Value`)) OVER (PARTITION BY `Date`) THEN 1 ELSE 0 END
Set the following dimensions:
Category 1 - Date
Category 2 - Location
Value - Calculated Field *Created above
Tooltip - Value *Note to enable the tooltip pill select Tooltip next to Chart Types within the top Palette selector.
Set range settings:
Range 1 Minimal Value - 1
Range 1 Maximum Value - 1
Set desired coloring.
Set data label settings:
Text - %_Tooltip1
Using the heatmapping chart, calculated field, and ranges you can customize the coloring of the chart while displaying the standard values.
Please reach out with any questions, concerns, or if i am unclear with the steps.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 755 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive