<?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: DAX table with dynamic values based on measures in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-table-with-dynamic-values-based-on-measures/m-p/3689662#M143373</link>
    <description>&lt;P&gt;You should not create calculated columns from measures. You cannot create calculated tables from measures (unless it is a single row single column table).&amp;nbsp; In both cases your measure will use a non-existent filter context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The maximum you can do is create a table variable as an intermediate step in a measure definition.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2024 01:09:29 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-02-09T01:09:29Z</dc:date>
    <item>
      <title>DAX table with dynamic values based on measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-table-with-dynamic-values-based-on-measures/m-p/3688869#M143325</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to have a table written in dax, with MIN and MAX values of a measure.&lt;/P&gt;&lt;P&gt;I have a measure that varies based on several slicers; I woul dlike to have a table that automatically creates 4 clusters based on this measure.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have built a table with 4 columns (id, Segment, Min, Max) like so :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;table_cluster =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;boundary1&lt;/SPAN&gt;&lt;SPAN&gt; = &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;calculate(MAXX(ALL('Store-Country Map'[STORE_ID]),[MY_MEASURE]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;boundary&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt; = &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;(bounder1 / 4 ) *3&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;boundary&lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt; = &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;(bounder1 / 4 ) *2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;boundary&lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt; = &amp;nbsp; bounder1 / 4 &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;boundary&lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;SPAN&gt; =&amp;nbsp; &amp;nbsp;calculate(&lt;/SPAN&gt;&lt;SPAN&gt;MINX(ALL('Store-Country Map'[STORE_ID]),[MY_MEASURE]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPA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&lt;/SPAN&gt;&lt;SPAN&gt;, boundary&lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it doesn't work as it seems that the table cannot accept a measure for the values.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As soon as I replace the table's code by hard coded values, it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated!&lt;BR /&gt;Thanks,&lt;BR /&gt;Stan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 16:25:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-table-with-dynamic-values-based-on-measures/m-p/3688869#M143325</guid>
      <dc:creator>Standef</dc:creator>
      <dc:date>2024-02-08T16:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAX table with dynamic values based on measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-table-with-dynamic-values-based-on-measures/m-p/3689662#M143373</link>
      <description>&lt;P&gt;You should not create calculated columns from measures. You cannot create calculated tables from measures (unless it is a single row single column table).&amp;nbsp; In both cases your measure will use a non-existent filter context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The maximum you can do is create a table variable as an intermediate step in a measure definition.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 01:09:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-table-with-dynamic-values-based-on-measures/m-p/3689662#M143373</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-09T01:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX table with dynamic values based on measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-table-with-dynamic-values-based-on-measures/m-p/3690302#M143401</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;! How would I create such table variable ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 08:30:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-table-with-dynamic-values-based-on-measures/m-p/3690302#M143401</guid>
      <dc:creator>Standef</dc:creator>
      <dc:date>2024-02-09T08:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX table with dynamic values based on measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-table-with-dynamic-values-based-on-measures/m-p/3690937#M143421</link>
      <description>&lt;LI-CODE lang="markup"&gt;Measure a =
Var b= summarize (c,[d])
Return countrows(b)

&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 09 Feb 2024 13:04:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-table-with-dynamic-values-based-on-measures/m-p/3690937#M143421</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-09T13:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAX table with dynamic values based on measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-table-with-dynamic-values-based-on-measures/m-p/3693969#M143624</link>
      <description>&lt;P&gt;Summarize is not able to be dynamic, even built with a measure unfortunately.&amp;nbsp;&lt;BR /&gt;Thanks anyway!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 12:04:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-table-with-dynamic-values-based-on-measures/m-p/3693969#M143624</guid>
      <dc:creator>Standef</dc:creator>
      <dc:date>2024-02-12T12:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX table with dynamic values based on measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-table-with-dynamic-values-based-on-measures/m-p/3693998#M143625</link>
      <description>&lt;P&gt;That's news to me. Please try it out.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 12:21:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-table-with-dynamic-values-based-on-measures/m-p/3693998#M143625</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-12T12:21:55Z</dc:date>
    </item>
  </channel>
</rss>

