<?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 how to use measure as a table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-how-to-use-measure-as-a-table/m-p/2268182#M55099</link>
    <description>&lt;P&gt;Create a fixed table for Vals = { 0, 1, 2, 3, 4, 5 } and do the rest dynamically as measures.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 21:34:04 GMT</pubDate>
    <dc:creator>AlexisOlson</dc:creator>
    <dc:date>2022-01-05T21:34:04Z</dc:date>
    <item>
      <title>DAX how to use measure as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-how-to-use-measure-as-a-table/m-p/2267562#M55043</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables, Teams and Games. I want to use Team.Team as a filter (slicer) in a report and every time user changes the Team all calculations should be calculated again.&lt;BR /&gt;So, in a games table there is teamid, homegoals, awaygoals and date fields.&lt;BR /&gt;One calculation uses the&amp;nbsp;&lt;SPAN class="hljs-built_in"&gt;POISSON.DIST&lt;/SPAN&gt;&lt;SPAN&gt;(x,mean,cumulative) DAX formula so that I generates a new table called PoissonCalculations and I want to use that table in the source of visualization&lt;BR /&gt;Here is the DAX that creates the table&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR Mean = [AverageGoals] -- average of goals and it is calculated in games table&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR Vals = GENERATESERIES ( 0, 5, 1 )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR CumulativeFalse = FALSE -- Probability density function&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ADDCOLUMNS ( &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Vals, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Poisson Distr.", -- Probability density function&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FORMAT ( POISSON.DIST ( [Value], Mean, CumulativeFalse ), "#,0.00000" )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Table is created nicely, but when I change the team filter it is not calculated again .... how can I change the DAX to get this PoissonCalculations table to be refreshed with new data .....&lt;BR /&gt;&lt;BR /&gt;Can someone point me how to do this ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 14:58:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-how-to-use-measure-as-a-table/m-p/2267562#M55043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-05T14:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: DAX how to use measure as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-how-to-use-measure-as-a-table/m-p/2267660#M55050</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Consider placing your table within variable then refer to that variable in measures. This will help the data to update and additionally it will make your data model more optimized. To clarify what I mean here is an example of DAX that uses calculated table as vartable to calculate average of category sums:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Summarized average = &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;vartable&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AverageExample&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;AverageExample[Category]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Value"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AverageExample[Values]&lt;/SPAN&gt;&lt;SPAN&gt;)) &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;vartable&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Now I can filter this dax with category slicer and the values update:&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;I hope this helps and if it does consider accepting this as a solution and giving the post a thumbs up!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Jan 2022 15:34:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-how-to-use-measure-as-a-table/m-p/2267660#M55050</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-05T15:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: DAX how to use measure as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-how-to-use-measure-as-a-table/m-p/2267866#M55076</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm not sure this works ....&lt;BR /&gt;The&amp;nbsp;&lt;SPAN&gt;PoissonCalculations calculated table with GENERATESERIES DAX is like&lt;BR /&gt;value&amp;nbsp; &amp;nbsp; &amp;nbsp;poisson&lt;BR /&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0,002&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0,22223&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0,3456&lt;BR /&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0,0001&lt;BR /&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0,000001&lt;BR /&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0,00001&lt;BR /&gt;&lt;BR /&gt;The POISSON.DIST is counted for all those 0-5 values based on each teams Mean value that changes every time ...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 17:17:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-how-to-use-measure-as-a-table/m-p/2267866#M55076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-05T17:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: DAX how to use measure as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-how-to-use-measure-as-a-table/m-p/2268182#M55099</link>
      <description>&lt;P&gt;Create a fixed table for Vals = { 0, 1, 2, 3, 4, 5 } and do the rest dynamically as measures.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 21:34:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-how-to-use-measure-as-a-table/m-p/2268182#M55099</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-01-05T21:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: DAX how to use measure as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-how-to-use-measure-as-a-table/m-p/2274444#M55443</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The tables and columns in power bi are always static, and only measure can calculate dynamically. Try to split your calculated table and replace those calculations with measure, as &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp; said.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 02:52:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-how-to-use-measure-as-a-table/m-p/2274444#M55443</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2022-01-10T02:52:44Z</dc:date>
    </item>
  </channel>
</rss>

