Forum Discussion
Create a Heat Map with a matrix with multiple variables (or comma separated values in one parameter)
- 3 years ago
Hey Anonymous. Let me know if the following will work.ā
Notes:
- The main piece of this is unpivoting the dataset into key-value pairs (see below screenshot).
The query in the red rectangle is the original datasetā
The query in the blue rectangle is a reference query of the original and is unpivoted. This is the one that is used in the matrix.
The green rectangle contains the Attribute column (key) and the Value column
The purple rectangle contains the Attribute Sort column. This field is necessary to sort the Attributes across the top of the matrix. See here for more info on sorting a column by another column.
- I created a font color measure that makes the font color of the cell black if the count is less than or equal to the median total, and white if it is greater than the median total
- The cell background color for the values is just a regular gradient conditional format
You can download the .pbix here
If this is enough to get you going, please consider kudoing this reply and choosing it as the solution. Otherwise, let me know if you need additional tweaks.
- The main piece of this is unpivoting the dataset into key-value pairs (see below screenshot).
Hey Anonymous,. Using your analogy data could you add a screenshot of what the viz looks like in Excel? I'd be happy to try and assist, and this screenshot would help me better understand your requirements.
Hi thank you, I can't seem to be able to add a sample datasheet here, but here's a snapshot of the final table I want to get:
And date looks like this:
Hope the screenshots are not too small. Thank you.