<?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: Power BI Divide Measure not ignoring the Blank rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Divide-Measure-not-ignoring-the-Blank-rows/m-p/1632722#M33087</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="61168" data-lia-user-login="themistoklis" class="lia-mention lia-mention-user"&gt;themistoklis&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Formula i have used is -&amp;nbsp;&lt;/P&gt;&lt;P&gt;New GgPR 2021 = DIVIDE([Rolling 6 months Gross Profit],[Total Gross Profit rolling past 12 months]))&lt;/P&gt;&lt;P&gt;another formula i tried is,&amp;nbsp;&lt;BR /&gt;New GgPR 2021 = IF(NOT(ISBLANK([Rolling 6 months Gross Profit])) &amp;amp;&amp;amp; NOT(ISBLANK([Total Gross Profit rolling past 12 months])), DIVIDE([Rolling 6 months Gross Profit],[Total Gross Profit rolling past 12 months]))&lt;/P&gt;&lt;P&gt;another one i used,&amp;nbsp; not the exact syntax but - if(rolling 6 month &amp;lt;&amp;gt; blank(),if(Total Gross profit past 12 month &amp;lt;&amp;gt; blank(), Divide&amp;nbsp;([Rolling 6 months Gross Profit],[Total Gross Profit rolling past 12 months])&lt;BR /&gt;This all 3 formulas gave, exact same result 79.61 %&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am not sure, If i can share Pbix file, but i hope this helps to understand&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2021 22:08:40 GMT</pubDate>
    <dc:creator>shubhamamilkant</dc:creator>
    <dc:date>2021-01-29T22:08:40Z</dc:date>
    <item>
      <title>Power BI Divide Measure not ignoring the Blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Divide-Measure-not-ignoring-the-Blank-rows/m-p/1632691#M33082</link>
      <description>&lt;P&gt;Hello, I have spent few hrs on this and I am not sure how to solve this problem,&amp;nbsp; I want Divide this 2 measures, Rolling 6 month Gross Profit by Total Gross Profit past 12 months, u can see thare are few blanks in both columns, I want ignore this to get a Final value.&lt;BR /&gt;&lt;BR /&gt;Currently as per the image - Divide value is 79.61 (4,132,822/5,191,196)&amp;nbsp; but if u filterout blank rows&amp;nbsp; it will be 73,17% (2,844,347/3,887,309), I would like to see 73.17% as a value in card, but no matter what formula i used to divide (like fiter using blank condition, using if condition, it is always showing me 79.61 % )&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;can some one help to write correct formula to get 73.17% in card, In table I can get 73.17% by using the same not blank filter&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advanced.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is what i am getting -&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;This is what i need -&amp;nbsp; but instad of table in card (73.17)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 21:35:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Divide-Measure-not-ignoring-the-Blank-rows/m-p/1632691#M33082</guid>
      <dc:creator>shubhamamilkant</dc:creator>
      <dc:date>2021-01-29T21:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Divide Measure not ignoring the Blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Divide-Measure-not-ignoring-the-Blank-rows/m-p/1632695#M33084</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="213343" data-lia-user-login="shubhamamilkant" class="lia-mention lia-mention-user"&gt;shubhamamilkant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the formula that you use in the card and also in the table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you could share the pbix file that would be even better. Do not send any sensitive data&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 21:36:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Divide-Measure-not-ignoring-the-Blank-rows/m-p/1632695#M33084</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2021-01-29T21:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Divide Measure not ignoring the Blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Divide-Measure-not-ignoring-the-Blank-rows/m-p/1632720#M33086</link>
      <description>&lt;P&gt;When I am trying to reply I am receiving this error, any idea ( i am not able to copy any formula because of this)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 21:54:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Divide-Measure-not-ignoring-the-Blank-rows/m-p/1632720#M33086</guid>
      <dc:creator>shubhamamilkant</dc:creator>
      <dc:date>2021-01-29T21:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Divide Measure not ignoring the Blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Divide-Measure-not-ignoring-the-Blank-rows/m-p/1632722#M33087</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="61168" data-lia-user-login="themistoklis" class="lia-mention lia-mention-user"&gt;themistoklis&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Formula i have used is -&amp;nbsp;&lt;/P&gt;&lt;P&gt;New GgPR 2021 = DIVIDE([Rolling 6 months Gross Profit],[Total Gross Profit rolling past 12 months]))&lt;/P&gt;&lt;P&gt;another formula i tried is,&amp;nbsp;&lt;BR /&gt;New GgPR 2021 = IF(NOT(ISBLANK([Rolling 6 months Gross Profit])) &amp;amp;&amp;amp; NOT(ISBLANK([Total Gross Profit rolling past 12 months])), DIVIDE([Rolling 6 months Gross Profit],[Total Gross Profit rolling past 12 months]))&lt;/P&gt;&lt;P&gt;another one i used,&amp;nbsp; not the exact syntax but - if(rolling 6 month &amp;lt;&amp;gt; blank(),if(Total Gross profit past 12 month &amp;lt;&amp;gt; blank(), Divide&amp;nbsp;([Rolling 6 months Gross Profit],[Total Gross Profit rolling past 12 months])&lt;BR /&gt;This all 3 formulas gave, exact same result 79.61 %&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am not sure, If i can share Pbix file, but i hope this helps to understand&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 22:08:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Divide-Measure-not-ignoring-the-Blank-rows/m-p/1632722#M33087</guid>
      <dc:creator>shubhamamilkant</dc:creator>
      <dc:date>2021-01-29T22:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Divide Measure not ignoring the Blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Divide-Measure-not-ignoring-the-Blank-rows/m-p/1633306#M33116</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="213343" data-lia-user-login="shubhamamilkant" class="lia-mention lia-mention-user"&gt;shubhamamilkant&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please share the formulas that you use for measures:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Rolling 6 months Gross Profit,&amp;nbsp;Total Gross Profit rolling past 12 months&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also in the table you have only 1 dimension called 'Program/ACCT'?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 14:23:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Divide-Measure-not-ignoring-the-Blank-rows/m-p/1633306#M33116</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2021-01-30T14:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Divide Measure not ignoring the Blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Divide-Measure-not-ignoring-the-Blank-rows/m-p/1634412#M33158</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="61168" data-lia-user-login="themistoklis" class="lia-mention lia-mention-user"&gt;themistoklis&lt;/a&gt;&amp;nbsp;Sorry for the delay in the response&amp;nbsp;&lt;BR /&gt;Let me start again, to give little bit more information -&amp;nbsp;&lt;BR /&gt;I have 2 tables, 1) load_summary Table and 2) Date Table&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1)load_summary Table has 3 columns Program/Acct, load_date&amp;nbsp;and Total Gross Profit&amp;nbsp;&lt;BR /&gt;2) Date table is created by me -&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALENDAR(MIN(load_summary[load_date]),MAX(load_summary[load_date]))&lt;/P&gt;&lt;P&gt;I want to calculate New GgPR 2021 (which is last 6 month gross Profit Divide by 12 months ago (6 months rolling Profit)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming Today is Feb 1 - last 6 month Gross profit&amp;nbsp; will be from 8/2/2020 to Today&amp;nbsp;&lt;BR /&gt;12 months ago (6 months rolling Profit)&amp;nbsp; = 02/1/2020 to 8/1/2020 (6 months profit but from from 12 months)&lt;/P&gt;&lt;P&gt;Measure&amp;nbsp;Rolling 6 months Gross Profit =&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var first_date_2021 = TODAY()&lt;BR /&gt;var end_date_2021 = EDATE(TODAY(),-6)&lt;BR /&gt;return&lt;BR /&gt;CALCULATE([Total Gross Profit],DATESBETWEEN( 'Date Table'[Date], end_date_2021, first_date_2021))&lt;/P&gt;&lt;P&gt;Measure&amp;nbsp;&lt;BR /&gt;Total Gross Profit rolling past 12 months =&lt;BR /&gt;var first_date_2021 = EDATE(TODAY(),-12)&lt;BR /&gt;var end_date_2021 = EDATE(TODAY(),-6)&lt;BR /&gt;return&lt;/P&gt;&lt;P&gt;CALCULATE([Total Gross Profit], DATESBETWEEN('Date Table'[Date], first_date_2021, end_date_2021))&lt;/P&gt;&lt;P&gt;What I want to calculate is % of gross profit only when we had business (acct/program) in both measures (rolling 6 months / Gross Profit rolling from 12 months to 6)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I really appreciate all the help, I hope this clears my question and&amp;nbsp; Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 01:25:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Divide-Measure-not-ignoring-the-Blank-rows/m-p/1634412#M33158</guid>
      <dc:creator>shubhamamilkant</dc:creator>
      <dc:date>2021-02-01T01:25:21Z</dc:date>
    </item>
  </channel>
</rss>

