cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jasemilly
Helper I
Helper I

deneb show actual values in a heatmap

HI I have followed this tutorial and have it working


https://www.youtube.com/watch?v=FlzlSozY3VE 

 

here is my PBI file

 

https://drive.google.com/file/d/1fZ5kszQT0kOLQ_EaoiShPt0PzGtr8ldW/view?usp=sharing 


I would like to add the actual values of the measure, I have tried to use another deneb table I have working to try and show the actual vaules but I can't seem to get it to work, How do I show the actual values?

I would like to see the actual Journeys value, not just the heat map colouring.

 

 

 

 

{
  "data": {"name": "dataset"},
  
  "vconcat": [
    {
      "hconcat": [
        {
          "name": "Main matrix",
          "mark": {"type": "rect","tooltip": true},
          "encoding": {
            "x": {
              "field": "WeekDay",
              "sort": null
            },
            "y": {
              "field": "Hour",
              "sort": null
            },
            
            
           
            
            
            "fill": {
              "field": "Journeys",
              "type": "quantitative",
              "legend": null,
              "scale": {
                "range": [
                  "#D5E9F9",
                  "#25476E"
                ]
              }
            }    
            
            ,
            
            "opacity" : {
              "condition" :{
                "test" : {
                  "field" : "__selected__",
                  "equal": "off"
                },
                "value":0.3
              },
              "value": 1
                }
            
          }

          }
          
          ,
        {
          "name": "Marginal bars (row)",
          "width" :75,
          "mark": {"type": "bar",
          "tooltip": true,
            "height" : {"band" : 0.8}
          },
          
          "encoding": {
            "y": {
              "field": "Hour",
              "sort": null,
              "axis": null
            },
            
            "x": {
              "field": "Journeys",
              "type" : "quantitative",
              "aggregate" : "sum"
            }
          }
        }
      ]
    },
    {
      "hconcat": [
        {
          "name": "Marginal bars (col)",
          "height":35,
          "mark": {"type": "bar", "tooltip": true,
            "width": {"band": 0.8}}
          ,
          "encoding": {
            "x": {
              "field": "WeekDay",
              "sort": null,
              "axis": null
            },
            
            "y": {
              "field" :"Journeys",
              "type" :"quantitative",
              "aggregate" : "sum",
                "scale" :{
                  "reverse" :true
                }
             }
          }
        }
      ]
    }
  ]
}

 

 

 

 

 

Thanks for all advice and help.

 

1 ACCEPTED SOLUTION
giammariam
Impactful Individual
Impactful Individual

Hey @jasemilly, here is the updated .pbix file. If this satisfies what you're after, please consider kudoing and choosing this as the solution. Also, feel free to tag me in the future for any Deneb related questions that come up. Always happy to help!

 

giammariam_0-1675445386341.png

 





Madison Giammaria
Super User In Training‌ 😄
LinkedIn

View solution in original post

2 REPLIES 2
giammariam
Impactful Individual
Impactful Individual

Hey @jasemilly, here is the updated .pbix file. If this satisfies what you're after, please consider kudoing and choosing this as the solution. Also, feel free to tag me in the future for any Deneb related questions that come up. Always happy to help!

 

giammariam_0-1675445386341.png

 





Madison Giammaria
Super User In Training‌ 😄
LinkedIn
giammariam
Impactful Individual
Impactful Individual

Hi @jasemilly, can you clarify what you mean by "actual values"? From interrogating the vega-lite spec, it looks like there are 3 fields being used: Journeys (numeric), WeekDay (text?), Hour (numeric). I'm not sure what the actual values are and where/what type of marks you'd like them to appear as.

If you could provide a sanitized .pbix file, that would also be helpful. Here are some tips on how:
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

Happy to try and help



Madison Giammaria
Super User In Training‌ 😄
LinkedIn

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors