<?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: Calculated Table in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Table/m-p/257493#M114792</link>
    <description>&lt;P&gt;Can you show what you want the resulting table to look like? I'm having a hard time following your explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sounds like your case would be a good use of the SUMMARIZE function. &amp;nbsp;You can group by the Period, and then define your calculated columns with whatever formula you please (this is where I was lost in your explanation).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 15:36:06 GMT</pubDate>
    <dc:creator>malagari</dc:creator>
    <dc:date>2017-09-22T15:36:06Z</dc:date>
    <item>
      <title>Calculated Table</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Table/m-p/257089#M114595</link>
      <description>&lt;P&gt;Hi Dears,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following Table&lt;/P&gt;&lt;P&gt;I have the following formula&lt;/P&gt;&lt;P&gt;Count X&amp;nbsp;= CALCULATE(COUNT('table1'[Value1]),FILTER(table1','table1'[Value1]="X"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I create a new table, that return in Column1 the Period (P1, P2, ...) and Column2, the value of (Count X&amp;nbsp;P3 - Count X P2)&lt;/P&gt;&lt;P&gt;so P3 will be&amp;nbsp;&lt;SPAN&gt;(Count X&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;P3 - Count X P2) and so on&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 07:01:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Table/m-p/257089#M114595</guid>
      <dc:creator>abukapsoun</dc:creator>
      <dc:date>2017-09-22T07:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Table</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Table/m-p/257493#M114792</link>
      <description>&lt;P&gt;Can you show what you want the resulting table to look like? I'm having a hard time following your explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sounds like your case would be a good use of the SUMMARIZE function. &amp;nbsp;You can group by the Period, and then define your calculated columns with whatever formula you please (this is where I was lost in your explanation).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 15:36:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Table/m-p/257493#M114792</guid>
      <dc:creator>malagari</dc:creator>
      <dc:date>2017-09-22T15:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Table</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Table/m-p/257497#M114795</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8585" data-lia-user-login="malagari" class="lia-mention lia-mention-user"&gt;malagari&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support, In fact I want to generate 2 columns,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Period &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Difference&lt;/P&gt;&lt;P&gt;P1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Count of X in P1 - Count of X in P2&lt;/P&gt;&lt;P&gt;P2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Count of X in P2 - Count of X in P3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;P3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Count of X in P4 - Count of X in P5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;P4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Count of X in P5 - Count of X in P6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to generate how much we had an increment in X&amp;nbsp;count between the periods.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 15:41:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Table/m-p/257497#M114795</guid>
      <dc:creator>abukapsoun</dc:creator>
      <dc:date>2017-09-22T15:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Table</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Table/m-p/257523#M114804</link>
      <description>&lt;P&gt;This probably isn't the cleanest way (I was trying to do it in one DAX expression initially), but you can create a summary table and then add a calculated column on top of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First step would be to summarize your data table by Period and Count of X. &amp;nbsp;I went ahead and added an "Index" column - this assumes that your periods will always be incrementing (P1, P2, ... P5, P6, .. Pn).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SummaryTable = SUMMARIZE(&lt;BR /&gt;                  Table1,&lt;BR /&gt;                  Table1[Period],&lt;BR /&gt;                  "Index", MID( Table1[Period], 2, LEN( MAX(Table1[Period]) ) ),&lt;BR /&gt;                  "Count of X", CALCULATE( COUNTROWS(Table1), FILTER(Table1, Table1[Value] = "X"))&lt;BR /&gt;               )&lt;/PRE&gt;&lt;P&gt;This will give us a table that looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From here, we can add a "Difference" column using the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Difference = [Count of X] - LOOKUPVALUE('Table'[Count of X], 'Table'[Index], 'Table'[Index] + 1)&lt;/PRE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note:&amp;nbsp;&lt;/EM&gt;If you receive an error on this last step, you need to change the Data Type for the [Index] column to a Whole Number instead of Text.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 16:29:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Table/m-p/257523#M114804</guid>
      <dc:creator>malagari</dc:creator>
      <dc:date>2017-09-22T16:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Table</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Table/m-p/259016#M115615</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8585" data-lia-user-login="malagari" class="lia-mention lia-mention-user"&gt;malagari&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you! It was exactly what I need.&lt;/P&gt;&lt;P&gt;One last thing please, what is the logic of that lockupvalue function?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 07:09:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Table/m-p/259016#M115615</guid>
      <dc:creator>abukapsoun</dc:creator>
      <dc:date>2017-09-26T07:09:33Z</dc:date>
    </item>
  </channel>
</rss>

