<?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 sum by rank and cpms in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-by-rank-and-cpms/m-p/3105259#M109372</link>
    <description>&lt;P&gt;Hi everyone can somebody help me?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;here is my sample data&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my&amp;nbsp; powerbi it already have a ranking&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;i need a formula that sum of all cpm by social platform and ranking, on the right screenshot the output will be 8872&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 04:56:42 GMT</pubDate>
    <dc:creator>reibalboaOMG</dc:creator>
    <dc:date>2023-03-01T04:56:42Z</dc:date>
    <item>
      <title>sum by rank and cpms</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-by-rank-and-cpms/m-p/3105259#M109372</link>
      <description>&lt;P&gt;Hi everyone can somebody help me?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;here is my sample data&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my&amp;nbsp; powerbi it already have a ranking&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;i need a formula that sum of all cpm by social platform and ranking, on the right screenshot the output will be 8872&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 04:56:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-by-rank-and-cpms/m-p/3105259#M109372</guid>
      <dc:creator>reibalboaOMG</dc:creator>
      <dc:date>2023-03-01T04:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: sum by rank and cpms</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-by-rank-and-cpms/m-p/3105293#M109375</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="522396" data-lia-user-login="reibalboaOMG" class="lia-mention lia-mention-user"&gt;reibalboaOMG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not quite sure how do you get&amp;nbsp;&amp;nbsp;8872, could you elaborate that?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 05:44:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-by-rank-and-cpms/m-p/3105293#M109375</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-01T05:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: sum by rank and cpms</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-by-rank-and-cpms/m-p/3105305#M109376</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;i've filtered the social platform by FB and (all cost/post / all impression) * 1000&lt;BR /&gt;total computation of cost/post = 745,200&lt;/P&gt;&lt;P&gt;total computation of impression = 83,994&lt;/P&gt;&lt;P&gt;over all computation (cost:745,200/impression:83,994)*1000 = 8872&amp;nbsp;&lt;/P&gt;&lt;P&gt;my ranking is base on week of update 01/22 = 1, 01/29 = 2&lt;/P&gt;&lt;P&gt;rank 1 on FB will be 8872&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;mine has the wrong output because i could'n figure out the right formula for this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 05:55:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-by-rank-and-cpms/m-p/3105305#M109376</guid>
      <dc:creator>reibalboaOMG</dc:creator>
      <dc:date>2023-03-01T05:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: sum by rank and cpms</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-by-rank-and-cpms/m-p/3105479#M109394</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="522396" data-lia-user-login="reibalboaOMG" class="lia-mention lia-mention-user"&gt;reibalboaOMG&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Not sure what could go wrong. Even a simple DIVDE/SUM shall do the job unless your data model is more complex that just a single table. In case of mutiple periods or platforms selected you may use the following to obtain correct aggregation.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
SUMX (
    SUMMARIZE ( 'Table', 'Table'[Social Platform], 'Table'[Rank] ),
    CALCULATE (
        DIVIDE ( SUM ( 'Table'[Cost/Post] ), SUM ( 'Table'[Post Impression] ) ) * 1000
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Mar 2023 08:30:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-by-rank-and-cpms/m-p/3105479#M109394</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-01T08:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: sum by rank and cpms</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-by-rank-and-cpms/m-p/3109699#M109778</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp; i have a new problem that i encountered&lt;/P&gt;&lt;P&gt;focus yourself to COST EFFICIENCIES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;youtube cpm has 5.97k on the first week&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;on the second week it has 3.70k which has the right color but if the value did'nt move on the next week it should be red.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cpmvalue = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Template (2)'&lt;/SPAN&gt;&lt;SPAN&gt;[Postimpcpm]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Template (2)'&lt;/SPAN&gt;&lt;SPAN&gt;[weekrank]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;'Template (2)'&lt;/SPAN&gt;&lt;SPAN&gt;[Postimpcpm]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Template (2)'&lt;/SPAN&gt;&lt;SPAN&gt;[weekrank]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;"#CC6478"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"#56AA93"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;here is my field value formula^&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 07:40:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sum-by-rank-and-cpms/m-p/3109699#M109778</guid>
      <dc:creator>reibalboaOMG</dc:creator>
      <dc:date>2023-03-03T07:40:33Z</dc:date>
    </item>
  </channel>
</rss>

