<?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 Help me to write the Measure calculation in Power BI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4041628#M160255</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this email finds you well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need assistance with writing a Measure calculation in Power BI that involves two conditions. Although I have mentioned the two conditions correctly in the attached ScreenShot and tried to create the formula based on them, it is not working as expected..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the details:&lt;BR /&gt;- I am using a slicer for Date filter, and the dates are available in the "Date_Table" table.&lt;BR /&gt;- The measure should calculate the output based on the selected date filter values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer to the attached ScreenShot for the exact conditions and the expected result. Your help in providing the correct formula for this measure would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Afrath&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2024 05:24:23 GMT</pubDate>
    <dc:creator>AFRATH34</dc:creator>
    <dc:date>2024-07-15T05:24:23Z</dc:date>
    <item>
      <title>Help me to write the Measure calculation in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4041628#M160255</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this email finds you well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need assistance with writing a Measure calculation in Power BI that involves two conditions. Although I have mentioned the two conditions correctly in the attached ScreenShot and tried to create the formula based on them, it is not working as expected..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the details:&lt;BR /&gt;- I am using a slicer for Date filter, and the dates are available in the "Date_Table" table.&lt;BR /&gt;- The measure should calculate the output based on the selected date filter values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer to the attached ScreenShot for the exact conditions and the expected result. Your help in providing the correct formula for this measure would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Afrath&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 05:24:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4041628#M160255</guid>
      <dc:creator>AFRATH34</dc:creator>
      <dc:date>2024-07-15T05:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to write the Measure calculation in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4041892#M160265</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645302" data-lia-user-login="AFRATH34" class="lia-mention lia-mention-user"&gt;AFRATH34&lt;/a&gt;&amp;nbsp;can you share the pbix file? or instead paste formulas and data so that we can make copy and paste.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 07:16:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4041892#M160265</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-07-15T07:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to write the Measure calculation in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4042434#M160316</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please explain how I can attach the PBIX file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Afrath&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 11:22:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4042434#M160316</guid>
      <dc:creator>AFRATH34</dc:creator>
      <dc:date>2024-07-15T11:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to write the Measure calculation in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4042485#M160322</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645302" data-lia-user-login="AFRATH34" class="lia-mention lia-mention-user"&gt;AFRATH34&lt;/a&gt;&amp;nbsp;UpLload the file in drive and then share the link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 12:08:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4042485#M160322</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-07-15T12:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to write the Measure calculation in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4042723#M160332</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please find the link to the file: [&lt;A title="Power BI" href="https://drive.google.com/drive/folders/1fl52xaMFfa5lRMOzGqfwy_MQdbal3tAu" target="_blank" rel="noopener"&gt;https://drive.google.com/drive/folders/1fl52xaMFfa5lRMOzGqfwy_MQdbal3tAu&lt;/A&gt;&amp;nbsp;].&lt;/P&gt;&lt;P&gt;I need your support in creating a measure column. I have not created the measure yet and would appreciate your assistance. The desired output for the "J0D8" Opp ID was mentioned in an earlier screenshot.&lt;/P&gt;&lt;P&gt;Here are the conditions for the measure:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If New Date1 &amp;lt; SelectedMonthEnd and SelectedMonthStart &amp;lt;= New Date1, then the measure should be Upfront Gross Profit * IG Forecast TCGP.&lt;/LI&gt;&lt;LI&gt;If New Date2 &amp;lt; SelectedMonthEnd and Expiry Date &amp;gt;= SelectedMonthStart, then the measure should be Recurring Gross Profit per Period * IG Forecast TCGP.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Afrath&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 14:28:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4042723#M160332</guid>
      <dc:creator>AFRATH34</dc:creator>
      <dc:date>2024-07-15T14:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to write the Measure calculation in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4043733#M160381</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645302" data-lia-user-login="AFRATH34" class="lia-mention lia-mention-user"&gt;AFRATH34&lt;/a&gt;&amp;nbsp;Please accept the request to access the drive.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 07:18:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4043733#M160381</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-07-16T07:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to write the Measure calculation in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4044386#M160415</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp;, I have accept your drive access request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Sorry for the late response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Afrath&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 13:46:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4044386#M160415</guid>
      <dc:creator>AFRATH34</dc:creator>
      <dc:date>2024-07-16T13:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to write the Measure calculation in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4063272#M161294</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645302" data-lia-user-login="AFRATH34" class="lia-mention lia-mention-user"&gt;AFRATH34&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before write a measure, you need to change the format of "New_date1" and "New_date2" to the date type.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Then try the following measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE =
IF (
    SELECTEDVALUE ( 'All'[New_Date1] )
        &amp;lt; SELECTEDVALUE ( Date_Table[SelectedMonthEnd] )
        &amp;amp;&amp;amp; SELECTEDVALUE ( 'All'[New_Date1] )
            &amp;gt; SELECTEDVALUE ( Date_Table[SelectedMonthStart] ),
    SELECTEDVALUE ( 'All'[Upfront Gross Profit] )
        * SELECTEDVALUE ( 'All'[IG Forecast TCGP] ),
    BLANK ()
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure2 =
IF (
    SELECTEDVALUE ( 'All'[New_Date2] )
        &amp;lt; SELECTEDVALUE ( Date_Table[SelectedMonthEnd] )
        &amp;amp;&amp;amp; SELECTEDVALUE ( 'All'[Expiry Date] )
            &amp;gt;= SELECTEDVALUE ( Date_Table[SelectedMonthStart] ),
    SELECTEDVALUE ( 'All'[Recurring Gross Profit per Period] )
        * SELECTEDVALUE ( 'All'[IG Forecast TCGP] ),
    BLANK ()
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 08:21:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-write-the-Measure-calculation-in-Power-BI/m-p/4063272#M161294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-26T08:21:07Z</dc:date>
    </item>
  </channel>
</rss>

