<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Visualizations failing to show in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/visualizations-failing-to-show/m-p/65670#M32890</link>
    <description>&lt;P&gt;To be clear: the data is correct in the table. It's also correctly displayed if I click "edit visualization." It's only the re-run visualization in the notebook / dashboard that is empty when I update a widget to use a different value.&lt;/P&gt;&lt;P&gt;The code looks something like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;location = dbutils.widgets.get("locations")
ids = spark.read.table("production.gold.devices").select("id").where(f"location = '{location}'").distinct().toPandas()['id']
dbutils.widgets.dropdown('device_ids', values=ids, default='', label='Device IDs')

# ... Another cell

device_id = dbutils.widgets.get('device_ids')
spark.read.table("production.gold.data").where(f"location = '{location}' AND device_id = '{device_id}' AND create_time &amp;gt; now() - INTERVAL 30 DAYS")

# PowerBI Linear graph visualization&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 21:04:19 GMT</pubDate>
    <dc:creator>Erik_L</dc:creator>
    <dc:date>2024-04-05T21:04:19Z</dc:date>
    <item>
      <title>Visualizations failing to show</title>
      <link>https://community.databricks.com/t5/data-engineering/visualizations-failing-to-show/m-p/65637#M32872</link>
      <description>&lt;P&gt;I have a SQL query that generates a table. I created a visualization from that table with the UI. I then have a widget that updates a value used in the query and re-runs the SQL, but then the visualization shows nothing, that there is "1 row," but if I select the table it shows all the rows and if I click "edit visualization" it shows the correct visualization. What's wrong with visualizations?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2024-04-05 10-23-03.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6940i2D96BA035E8D63FA/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2024-04-05 10-23-03.png" alt="Screenshot from 2024-04-05 10-23-03.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 17:29:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/visualizations-failing-to-show/m-p/65637#M32872</guid>
      <dc:creator>Erik_L</dc:creator>
      <dc:date>2024-04-05T17:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Visualizations failing to show</title>
      <link>https://community.databricks.com/t5/data-engineering/visualizations-failing-to-show/m-p/65670#M32890</link>
      <description>&lt;P&gt;To be clear: the data is correct in the table. It's also correctly displayed if I click "edit visualization." It's only the re-run visualization in the notebook / dashboard that is empty when I update a widget to use a different value.&lt;/P&gt;&lt;P&gt;The code looks something like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;location = dbutils.widgets.get("locations")
ids = spark.read.table("production.gold.devices").select("id").where(f"location = '{location}'").distinct().toPandas()['id']
dbutils.widgets.dropdown('device_ids', values=ids, default='', label='Device IDs')

# ... Another cell

device_id = dbutils.widgets.get('device_ids')
spark.read.table("production.gold.data").where(f"location = '{location}' AND device_id = '{device_id}' AND create_time &amp;gt; now() - INTERVAL 30 DAYS")

# PowerBI Linear graph visualization&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 21:04:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/visualizations-failing-to-show/m-p/65670#M32890</guid>
      <dc:creator>Erik_L</dc:creator>
      <dc:date>2024-04-05T21:04:19Z</dc:date>
    </item>
  </channel>
</rss>

