<?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: Using Calculated Measures to derive new Stats / Visualisations in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Using-Calculated-Measures-to-derive-new-Stats-Visualisations/m-p/235663#M7422</link>
    <description>&lt;P&gt;@Anonymous&lt;/P&gt;
&lt;P&gt;Such detailed description does make your requirement as clear as crystal!&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; It is always a really good practice to ask a question in a forum.&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your case, I will create a&amp;nbsp;auxiliary table and two measures as below. See more details in the attached pbix.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 237px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/55919i05B8AE32E2C39B5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;HighLowCnt =
VAR summizedTbl =
    ADDCOLUMNS (
        SUMMARIZE ( 'Table', 'Table'[Customer], "totalPrem", SUM ( 'Table'[Premium] ) ),
        "level", IF ( [totalPrem] &amp;gt; 400, "High", "Low" )
    )
RETURN
    COUNTROWS (
        FILTER ( summizedTbl, [level] = LASTNONBLANK ( 'Level'[Level], "" ) )
    )&lt;BR /&gt;&lt;BR /&gt;HighLowLvl = IF(SUM('Table'[Premium])&amp;gt;400,"High","Low")&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 551px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/55921i4B9F80B3DFE10C0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 475px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/55922i7E762322B857348B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2017 02:46:58 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-08-22T02:46:58Z</dc:date>
    <item>
      <title>Using Calculated Measures to derive new Stats / Visualisations</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Calculated-Measures-to-derive-new-Stats-Visualisations/m-p/234332#M7385</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create few calculated measures and then want to re-use them to derive new Stats / Values. Here is an example from my end&lt;/P&gt;&lt;P&gt;Customer &amp;nbsp; &amp;nbsp; &amp;nbsp; Premium &amp;nbsp; &amp;nbsp; &amp;nbsp; Customer band (Derived Measure) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Org&lt;/P&gt;&lt;P&gt;C1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O1&lt;/P&gt;&lt;P&gt;C1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;400 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O2&lt;/P&gt;&lt;P&gt;C2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O1&lt;/P&gt;&lt;P&gt;C2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;375 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O2&lt;/P&gt;&lt;P&gt;C3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;425 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a Calculated Measure named Customer Band which I would project in my Visualization along with Customer.&lt;/P&gt;&lt;P&gt;Assuming user selected Org = O2 then&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customer Band Derivation -&amp;gt; (total premium &amp;gt; 400) then High else Low&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customer &amp;nbsp; &amp;nbsp; &amp;nbsp; Customer Band&lt;/P&gt;&lt;P&gt;C1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Low&lt;/P&gt;&lt;P&gt;C2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Low&lt;/P&gt;&lt;P&gt;C3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; High&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using above result, I would like to project a new Visualisation using measure Customer Band&lt;/P&gt;&lt;P&gt;Customer Band &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Count (DISTINCT Customers)&lt;/P&gt;&lt;P&gt;High &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;Low &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now Lets assume User selected Org = O1 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customer &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Customer Band&lt;/P&gt;&lt;P&gt;C1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Low&lt;/P&gt;&lt;P&gt;C2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Low&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Above result, I would like to project a new Visualisation using measure Customer Band&lt;/P&gt;&lt;P&gt;Customer Band &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Count (DISTINCT Customers)&lt;/P&gt;&lt;P&gt;Low &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can this be achieved in Power BI. Please let me know you if more information is required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 16:45:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Calculated-Measures-to-derive-new-Stats-Visualisations/m-p/234332#M7385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-18T16:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using Calculated Measures to derive new Stats / Visualisations</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Calculated-Measures-to-derive-new-Stats-Visualisations/m-p/235663#M7422</link>
      <description>&lt;P&gt;@Anonymous&lt;/P&gt;
&lt;P&gt;Such detailed description does make your requirement as clear as crystal!&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; It is always a really good practice to ask a question in a forum.&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your case, I will create a&amp;nbsp;auxiliary table and two measures as below. See more details in the attached pbix.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 237px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/55919i05B8AE32E2C39B5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;HighLowCnt =
VAR summizedTbl =
    ADDCOLUMNS (
        SUMMARIZE ( 'Table', 'Table'[Customer], "totalPrem", SUM ( 'Table'[Premium] ) ),
        "level", IF ( [totalPrem] &amp;gt; 400, "High", "Low" )
    )
RETURN
    COUNTROWS (
        FILTER ( summizedTbl, [level] = LASTNONBLANK ( 'Level'[Level], "" ) )
    )&lt;BR /&gt;&lt;BR /&gt;HighLowLvl = IF(SUM('Table'[Premium])&amp;gt;400,"High","Low")&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 551px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/55921i4B9F80B3DFE10C0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 475px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/55922i7E762322B857348B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 02:46:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Calculated-Measures-to-derive-new-Stats-Visualisations/m-p/235663#M7422</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-08-22T02:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using Calculated Measures to derive new Stats / Visualisations</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Calculated-Measures-to-derive-new-Stats-Visualisations/m-p/236071#M7432</link>
      <description>&lt;P&gt;Thanks Eric for the solution. Please correct me if my understanding of the solution is incorrect ...&lt;/P&gt;&lt;P&gt;"summizedTbl" gets calculated / evaluated for each of the Level values "High" and "Low". If I have 10 different bands then the "summizedTbl" get calculated for all the Bands.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would this slow down the performance of my PowerBI Report / Dashboard ???&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 10:30:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Calculated-Measures-to-derive-new-Stats-Visualisations/m-p/236071#M7432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-22T10:30:45Z</dc:date>
    </item>
  </channel>
</rss>

