<?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: How to pass multiple Value to a dynamic Variable in Dashboard underlying SQL in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/how-to-pass-multiple-value-to-a-dynamic-variable-in-dashboard/m-p/64931#M1251</link>
    <description>&lt;P&gt;It seems to work, try and create all your variables as a Drop Down List, with single value allowed and only the filter i.e. msp in my example as a multiple values allowed, no quotations in the quotation drop down.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YuliyanBogdanov_1-1711641595347.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6845i0B061B336D3C9B93/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="YuliyanBogdanov_1-1711641595347.png" alt="YuliyanBogdanov_1-1711641595347.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me know if that helped.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2024 16:00:09 GMT</pubDate>
    <dc:creator>YuliyanBogdanov</dc:creator>
    <dc:date>2024-03-28T16:00:09Z</dc:date>
    <item>
      <title>How to pass multiple Value to a dynamic Variable in Dashboard underlying SQL</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-pass-multiple-value-to-a-dynamic-variable-in-dashboard/m-p/63731#M1237</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;select&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;{{user_defined_variable}}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; my_var,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count(*) as cnt&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; my_table&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;where&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{{user_defined_variable}} = {{value}}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for&amp;nbsp;user_defined_variable, I use query based dropdown list to get a column_name I'd like in the selection.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for&amp;nbsp;user_defined_value, I can only use text to pass one value&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Since the value selection is based on my selection of&amp;nbsp;user_defined_variable, I can't use dropdown list to predefine value. I tried to nest variable in the query used for&amp;nbsp;user_defined_variable. It doesn't work.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I also tried&amp;nbsp;{{user_defined_variable}} in ({{value}}), doesn't work as well.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I wonder if anyone knows a solution. thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Mar 2024 18:43:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-pass-multiple-value-to-a-dynamic-variable-in-dashboard/m-p/63731#M1237</guid>
      <dc:creator>Linglin</dc:creator>
      <dc:date>2024-03-14T18:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass multiple Value to a dynamic Variable in Dashboard underlying SQL</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-pass-multiple-value-to-a-dynamic-variable-in-dashboard/m-p/64023#M1241</link>
      <description>&lt;P&gt;Thank you very much for your reply. I'm not sure if my databricks environment is MySQL. SET statement does't work for me. (I tried both dbx notebooks(SQL enviroment, I think it's spark sql) and in sql editor). In SQL editor, it shows PowerBI on the right corner and it supports dashboard rendering.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me {{}} works well as variable setter. It worksWHERE {{my_var}}&amp;nbsp;=&amp;nbsp;{{some_value}}/where {{my_var}} in ({{some_value}})&amp;nbsp;when I pass in one value for {{some_value}} in both statements, but returns error message when I try to return multiple values. I wonder in your statement, if it works for multiple values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 17:00:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-pass-multiple-value-to-a-dynamic-variable-in-dashboard/m-p/64023#M1241</guid>
      <dc:creator>Linglin</dc:creator>
      <dc:date>2024-03-18T17:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass multiple Value to a dynamic Variable in Dashboard underlying SQL</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-pass-multiple-value-to-a-dynamic-variable-in-dashboard/m-p/64931#M1251</link>
      <description>&lt;P&gt;It seems to work, try and create all your variables as a Drop Down List, with single value allowed and only the filter i.e. msp in my example as a multiple values allowed, no quotations in the quotation drop down.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YuliyanBogdanov_1-1711641595347.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6845i0B061B336D3C9B93/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="YuliyanBogdanov_1-1711641595347.png" alt="YuliyanBogdanov_1-1711641595347.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me know if that helped.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 16:00:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-pass-multiple-value-to-a-dynamic-variable-in-dashboard/m-p/64931#M1251</guid>
      <dc:creator>YuliyanBogdanov</dc:creator>
      <dc:date>2024-03-28T16:00:09Z</dc:date>
    </item>
  </channel>
</rss>

