<?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: flexible Calculated field in Dashboard changing with filters used in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/flexible-calculated-field-in-dashboard-changing-with-filters/m-p/149764#M2516</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/216690"&gt;@Ashwin_DSA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;yes I´m referring to Dashboards in Databricks.&lt;/P&gt;&lt;P&gt;Can you explain how I could create a calculated measure? I think this would solve my problem.&lt;/P&gt;&lt;P&gt;I want the user to be able to change the daterange on the datepicker and then the AOV would be calculated based on the sales for the dates filtered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2026 11:54:19 GMT</pubDate>
    <dc:creator>a_d</dc:creator>
    <dc:date>2026-03-04T11:54:19Z</dc:date>
    <item>
      <title>flexible Calculated field in Dashboard changing with filters used</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/flexible-calculated-field-in-dashboard-changing-with-filters/m-p/149707#M2511</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I am making a Dashboard where I want to show the AOV per Brand with a date filter to change the days used in the calculation.&lt;/P&gt;&lt;P&gt;AOV = sales / orders&lt;/P&gt;&lt;P&gt;I have sales and orders per day and would like to have the AOV dependant on the Days selected.&lt;/P&gt;&lt;P&gt;The only way I found to display the AOV is to calculate it per day and then put an avg() over it in the widget, but this doesn´t show the the true number (avg of avg). Ideally it would be sth similar to what you can do in excel with pivot calulated fields.&lt;/P&gt;&lt;P&gt;I am using sql&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2026 15:13:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/flexible-calculated-field-in-dashboard-changing-with-filters/m-p/149707#M2511</guid>
      <dc:creator>a_d</dc:creator>
      <dc:date>2026-03-03T15:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: flexible Calculated field in Dashboard changing with filters used</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/flexible-calculated-field-in-dashboard-changing-with-filters/m-p/149755#M2515</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/218454"&gt;@a_d&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you please confirm that you are referring to dashboards in Databricks and not another reporting tool?&lt;/P&gt;
&lt;P&gt;And, when you mention a flexible calculated field, do you mean a Custom Calculation? If not, have you considered using a custom calculated measure?&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;EM&gt;&lt;STRONG&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2026 09:03:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/flexible-calculated-field-in-dashboard-changing-with-filters/m-p/149755#M2515</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-03-04T09:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: flexible Calculated field in Dashboard changing with filters used</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/flexible-calculated-field-in-dashboard-changing-with-filters/m-p/149764#M2516</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/216690"&gt;@Ashwin_DSA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;yes I´m referring to Dashboards in Databricks.&lt;/P&gt;&lt;P&gt;Can you explain how I could create a calculated measure? I think this would solve my problem.&lt;/P&gt;&lt;P&gt;I want the user to be able to change the daterange on the datepicker and then the AOV would be calculated based on the sales for the dates filtered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2026 11:54:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/flexible-calculated-field-in-dashboard-changing-with-filters/m-p/149764#M2516</guid>
      <dc:creator>a_d</dc:creator>
      <dc:date>2026-03-04T11:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: flexible Calculated field in Dashboard changing with filters used</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/flexible-calculated-field-in-dashboard-changing-with-filters/m-p/149768#M2517</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/218454"&gt;@a_d&lt;/a&gt; -&amp;nbsp;Thanks for confirming.&lt;/P&gt;
&lt;P&gt;Here is a good &lt;A href="https://docs.databricks.com/aws/en/dashboards/custom-calculations/" target="_self"&gt;example.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I've also tested it and given some snapshots below if it helps.&amp;nbsp;My data looks something like the below.&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="AOV_1.jpg" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/24509i01E90FFEA6BDBD1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AOV_1.jpg" alt="AOV_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can see above the results (on the right side) an option to create a custom calculation.&amp;nbsp;In the editor, add the formula.&amp;nbsp;SUM(sales) / SUM(orders)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AOV_2.jpg" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/24508i1AF4B8CEEE06DEA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AOV_2.jpg" alt="AOV_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can then build the visualisation and choose the custom measure you have created.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AOV_3.jpg" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/24510i79EE237EC39A201B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AOV_3.jpg" alt="AOV_3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;EM&gt;&lt;STRONG&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2026 12:51:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/flexible-calculated-field-in-dashboard-changing-with-filters/m-p/149768#M2517</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-03-04T12:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: flexible Calculated field in Dashboard changing with filters used</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/flexible-calculated-field-in-dashboard-changing-with-filters/m-p/149770#M2518</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.databricks.com/t5/user/viewprofilepage/user-id/216690" target="_blank"&gt;@Ashwin_DSA&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you so much, that´s excactly what I wanted &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2026 13:52:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/flexible-calculated-field-in-dashboard-changing-with-filters/m-p/149770#M2518</guid>
      <dc:creator>a_d</dc:creator>
      <dc:date>2026-03-04T13:52:12Z</dc:date>
    </item>
  </channel>
</rss>

