Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
asodie
Helper I
Helper I

Vega-lite in Deneb: Tooltip showing "False" instead of unique identifier

I am new to using Vega-lite through Deneb in Power BI. I am creating a bubble chart as a timeline view. I included my code below. The size of the bubbles in based on value, the date is the x-axis, and the prob is the y-axis. Everything works perfectly except the tooltip. For ID#, instead of showing the number it shows "False". If I put ID# in the labels for each bubble it shows the number just fine, so I'm not sure why it's showing "False" instead of the ID number in the tooltip. Thanks!

I based my chart off this one: https://vega.github.io/vega-lite/examples/circle_natural_disasters.html

 

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "data": {
    "name": "dataset"
  },
  "width": 950,
  "height": 400,
  
  "encoding": {
    "x": {
      "field": "Date",
      "type": "temporal",
      "axis": {"grid": false, "format":"Q%q %Y", "title":"Date"}
    },
    "y": {
      "field": "Prob", 
      "type": "quantitative", 
      "axis": {"title": "Prob"}
    },
    "tooltip" : [
                {"field":"Title", "type": "nominal"},
                {"field":"ID#", "type":"nominal"},
                {"field":"Amount", "type": "quantitative"},
                {"field":"Description", "type":"nominal"}
                ]
  },
  
  
  "layer":[{
      "mark":{
        "type": "circle",
        "opacity": 0.8,
        "stroke": "black",
        "strokeWidth": 1
      },
      "encoding": {
          "size": {
                "field": "Amount",
                    "type": "quantitative",
                    "title": "",
                    "legend": "",
                    "scale": {"rangeMax": 5000}
                 },
              "color": {
                    "field": "Type", 
                    "type": "nominal"
           }
        }
    },
    
    
    {
      "mark":{
      "type": "text",
      "align": "left",
      "baseline": "top",
      "dx": 5,
      "limit":200,
      "angle":-25
    },
      "encoding": {
        "text":{"field":"Title", "type":"nominal"}
      }
    }
  ]
  
}
1 ACCEPTED SOLUTION
asodie
Helper I
Helper I

I was able to solve this problem: changing the data type in PBI fixed this for me. I had stored it as a text field because I didn't want it to be summarized as a number. Changing it to a numeric data type fixed the problem!

View solution in original post

1 REPLY 1
asodie
Helper I
Helper I

I was able to solve this problem: changing the data type in PBI fixed this for me. I had stored it as a text field because I didn't want it to be summarized as a number. Changing it to a numeric data type fixed the problem!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.