<?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: Help me to find the dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3070587#M106542</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;,&lt;/P&gt;&lt;P&gt;I have a change request from the company, bonus for staffs have many conditions more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;In table Bonus:&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;The bonus table is explained as follows:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;STRONG&gt;Bonus for new student enrollment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Bonus 1 =Number of New Student PD x Bonus of group&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; -Apply for condition type&amp;nbsp;NEW ENROLLMENT &amp;nbsp;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1. Area code : HCMC &amp;amp; SouthArea&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2.&lt;SPAN&gt;% Act vs Target of Campus is greater than and equal 80%&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3.# of New Student PD is greater than and equal 5&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Example:&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;Conditions apply for&amp;nbsp;type&amp;nbsp;NEW ENROLLMENT&lt;/P&gt;&lt;P&gt;1. Area code : New Area &amp;amp;&amp;nbsp; VT Area&lt;/P&gt;&lt;P&gt;2.&lt;SPAN&gt;% Act vs Target of Campus is greater than and equal 75%&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3.# of New Student PD is greater than and equal 3&lt;/P&gt;&lt;P&gt;&lt;img /&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;&lt;STRONG&gt;2. Bonus for new&amp;nbsp;revenue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bonus 2 = New Revenue PD x Bonus of group&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Conditions apply for&amp;nbsp;type&amp;nbsp;NEW REVENUE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;1. Area code : HCMC &amp;amp; SouthArea&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;2.&lt;SPAN&gt;% Act vs Target of Campus is greater than and equal 80%&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;3.New Revenue PD is greater than and equal 50,000,000&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Similar as&amp;nbsp; above, Conditions apply for&amp;nbsp;type&amp;nbsp;NEW REVENUE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;1. Area code :&amp;nbsp;New Area &amp;amp;&amp;nbsp; VT Area&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;2.&lt;SPAN&gt;% Act vs Target of Campus is greater than and equal 75%&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;3.New Revenue PD is greater than and equal 30,000,000&lt;/P&gt;&lt;P&gt;&lt;img /&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;&lt;STRONG&gt;3. Bonus for re enrollment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bonus 3 = # Student Re Enroll x % The corresponding bonus level according to the table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Conditions apply for&amp;nbsp;type Re Enrollment&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;1. Area code : all of area&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;2.% Re Enroll Student following percentage as :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;Example : Staff E have 30 student re enrollment and % Re Enroll Student is 120%&lt;/P&gt;&lt;P&gt;Bonus 3 = 30 x 20,000 = 600,000&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total Bonus = Bonus 1+ Bonus 2+Bonus 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;All of type condition are calculating for January because in February bonus will be change the value. Can the measure apply the conditions for month ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I make a power BI file with table data and bonus table in this link :&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1N3bYrYKtcwPUffFFsJWEe_GpJee3rfT7/view?usp=share_link" target="_self" rel="nofollow noopener noreferrer"&gt;https://drive.google.com/file/d/1N3bYrYKtcwPUffFFsJWEe_GpJee3rfT7/view?usp=share_link&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me to apply all of conditions for dax to calculate the bonus of staff ?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 01:10:03 GMT</pubDate>
    <dc:creator>sakuragihana</dc:creator>
    <dc:date>2023-02-10T01:10:03Z</dc:date>
    <item>
      <title>Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3061614#M105824</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got a difficult problem. I have a table :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bonus&amp;nbsp; =Number of New Student&amp;nbsp; x Bonus of group&lt;/P&gt;&lt;P&gt;Example :&amp;nbsp; Employee B has 90 new students enrolled. Bonus for B are calculated as:&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;Please help me to find a dax for this calculation. Thank you so much&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 17:39:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3061614#M105824</guid>
      <dc:creator>sakuragihana</dc:creator>
      <dc:date>2023-02-04T17:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3062150#M105859</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509041" data-lia-user-login="sakuragihana" class="lia-mention lia-mention-user"&gt;sakuragihana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with the solution. You need to restructure the 'Bonus' table as per below screenshots.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Bonus Amount = 
SUMX ( 
    'Table',
    VAR NumOfStudents = 'Table'[Number of Students]
    VAR BonusTable = FILTER ( Bonus, Bonus[Lower Limit] &amp;lt;= NumOfStudents )
    VAR BonusTable1 = 
        ADDCOLUMNS ( 
            BonusTable, 
            "@Students", 
            VAR TableBefore = FILTER ( BonusTable, [Bonus] &amp;lt; EARLIER ( [Bonus] ) )
            VAR StudentsBefore = SUMX ( TableBefore, [Upper Limit] )
            RETURN  
                NumOfStudents - StudentsBefore
        )
    VAR BonusTable2 = FILTER ( BonusTable1, [@Students] &amp;gt; 0 )
    RETURN
        SUMX ( 
            BonusTable2,
            MIN ( [Upper Limit], [@Students] ) * [Bonus]
        )
) + 0&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 05 Feb 2023 09:41:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3062150#M105859</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-05T09:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3062923#M105936</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&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;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a table below &lt;/SPAN&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bonus for new student enroll&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Condition 1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Apply for Area code MiddeArea and NorthArea&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Condition 2&lt;/TD&gt;&lt;TD&gt;% Act vs Target of Campus is greater than and equal 80%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Condition 3&lt;/TD&gt;&lt;TD&gt;# of New Student PD is greater than and equal 5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Bonus&amp;nbsp; =Number of New Student PD x Bonus of group&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Jame belong to Campus ADV which Area Code is MiddeArea and % Act vs Target 161% and # of New Student PD is 30. All of 3 conditions are satisfied.&lt;/P&gt;&lt;P&gt;Please help me to apply 3 conditions for dax to calculate bonus for staff&amp;nbsp; Jame&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 04:17:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3062923#M105936</guid>
      <dc:creator>sakuragihana</dc:creator>
      <dc:date>2023-02-06T04:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3063490#M105970</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509041" data-lia-user-login="sakuragihana" class="lia-mention lia-mention-user"&gt;sakuragihana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I knew it! That was a trap&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Just kidding&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In order to help you faster please create a sample PBIX file containing a data model with similar relationships and share it with me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 10:23:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3063490#M105970</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-06T10:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3063571#M105977</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@ tamerj1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help, I share PBIX file:&amp;nbsp;&amp;nbsp;&lt;A href="https://drive.google.com/file/d/19AzUu3NehGDvZPWXJpiT-xaGKOPg4tf4/view?usp=share_link" target="_self"&gt;https://drive.google.com/file/d/19AzUu3NehGDvZPWXJpiT-xaGKOPg4tf4/view?usp=share_link&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 11:00:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3063571#M105977</guid>
      <dc:creator>sakuragihana</dc:creator>
      <dc:date>2023-02-06T11:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3063614#M105978</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509041" data-lia-user-login="sakuragihana" class="lia-mention lia-mention-user"&gt;sakuragihana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Ok but how should the report look like?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 11:10:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3063614#M105978</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-06T11:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3063639#M105984</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509041" data-lia-user-login="sakuragihana" class="lia-mention lia-mention-user"&gt;sakuragihana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file amended with the solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Bonus Amount = 
VAR FilteredStaff = 
    FILTER ( 
        Staff,
        RELATED ( Campus[Area Code] ) IN { "MiddeArea ", "NorthArea" }
            &amp;amp;&amp;amp; RELATED ( Campus[# of New Student PD] ) &amp;gt;= 0.8
    )
RETURN
    SUMX ( 
        FilteredStaff,
        VAR NumOfStudents = Staff[# of New Student PD]
        VAR BonusTable = FILTER ( Bonus, Bonus[Lower Limit] &amp;lt;= NumOfStudents )
        VAR BonusTable1 = 
            ADDCOLUMNS ( 
                BonusTable, 
                "@Students", 
                VAR TableBefore = FILTER ( BonusTable, [Bonus] &amp;lt; EARLIER ( [Bonus] ) )
                VAR StudentsBefore = SUMX ( TableBefore, [Upper Limit] )
                RETURN  
                    NumOfStudents - StudentsBefore
            )
        VAR BonusTable2 = FILTER ( BonusTable1, [@Students] &amp;gt; 0 )
        RETURN
            SUMX ( 
                BonusTable2,
                MIN ( [Upper Limit], [@Students] ) * [Bonus]
            )
    ) + 0&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Feb 2023 11:25:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3063639#M105984</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-06T11:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3064971#M106082</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@ tamerj,&lt;/P&gt;&lt;P&gt;Report just need to calculate bonus for staff.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 01:04:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3064971#M106082</guid>
      <dc:creator>sakuragihana</dc:creator>
      <dc:date>2023-02-07T01:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065134#M106100</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509041" data-lia-user-login="sakuragihana" class="lia-mention lia-mention-user"&gt;sakuragihana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you seen the solution at the top?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 02:20:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065134#M106100</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-07T02:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065251#M106106</link>
      <description>&lt;P&gt;Yes, I saw that solution at the top.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 03:25:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065251#M106106</guid>
      <dc:creator>sakuragihana</dc:creator>
      <dc:date>2023-02-07T03:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065284#M106108</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509041" data-lia-user-login="sakuragihana" class="lia-mention lia-mention-user"&gt;sakuragihana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;So this is not what you're looking for?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 04:13:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065284#M106108</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-07T04:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065287#M106109</link>
      <description>&lt;P&gt;&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;,&lt;/P&gt;&lt;P&gt;Yes, I need a solution for apply 3 conditions for calculating bonus of staff.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution at the top is not enough.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 04:17:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065287#M106109</guid>
      <dc:creator>sakuragihana</dc:creator>
      <dc:date>2023-02-07T04:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065290#M106110</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509041" data-lia-user-login="sakuragihana" class="lia-mention lia-mention-user"&gt;sakuragihana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you please indicate in this screenshot which row are not calculated correctly along with the clarification perhaps I can better understand your requirement.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 04:20:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065290#M106110</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-07T04:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065294#M106114</link>
      <description>&lt;P&gt;&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;,&lt;/P&gt;&lt;P&gt;The condition in Filter maybe wrong :&lt;/P&gt;&lt;P&gt;Campus[# of New student PD ] &amp;gt; = 5 ( not &amp;gt;=0.8 )&lt;/P&gt;&lt;P&gt;and Campus[%Act vs Target] &amp;gt;=0.8&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Number of Student&lt;/TD&gt;&lt;TD&gt;Bonus&lt;/TD&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;50000&lt;/TD&gt;&lt;TD&gt;500,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;100000&lt;/TD&gt;&lt;TD&gt;1500,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;200000&lt;/TD&gt;&lt;TD&gt;1000,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;3000,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bonus of Jame = 3.000,000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 04:31:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065294#M106114</guid>
      <dc:creator>sakuragihana</dc:creator>
      <dc:date>2023-02-07T04:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065306#M106115</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509041" data-lia-user-login="sakuragihana" class="lia-mention lia-mention-user"&gt;sakuragihana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes you are right. There was a typo mistake "MiddeArea " and the formula referenced the wrong column [# of New Student PD].&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Bonus Amount = 
VAR FilteredStaff = 
    FILTER ( 
        Staff,
        RELATED ( Campus[Area Code] ) IN { "MiddleArea", "NorthArea" }
            &amp;amp;&amp;amp; RELATED ( Campus[% Act vs Target] ) &amp;gt;= 0.8
    )
RETURN
    SUMX ( 
        FilteredStaff,
        VAR NumOfStudents = Staff[# of New Student PD]
        VAR BonusTable = FILTER ( Bonus, Bonus[Lower Limit] &amp;lt;= NumOfStudents )
        VAR BonusTable1 = 
            ADDCOLUMNS ( 
                BonusTable, 
                "@Students", 
                VAR TableBefore = FILTER ( BonusTable, [Bonus] &amp;lt; EARLIER ( [Bonus] ) )
                VAR StudentsBefore = SUMX ( TableBefore, [Upper Limit] )
                RETURN  
                    NumOfStudents - StudentsBefore
            )
        VAR BonusTable2 = FILTER ( BonusTable1, [@Students] &amp;gt; 0 )
        RETURN
            SUMX ( 
                BonusTable2,
                MIN ( [Upper Limit], [@Students] ) * [Bonus]
            )
    ) + 0&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Feb 2023 04:58:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065306#M106115</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-07T04:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065475#M106125</link>
      <description>&lt;P&gt;&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;,&lt;/P&gt;&lt;P&gt;Thank you so much !&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 06:43:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3065475#M106125</guid>
      <dc:creator>sakuragihana</dc:creator>
      <dc:date>2023-02-07T06:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to find the dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3070587#M106542</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;,&lt;/P&gt;&lt;P&gt;I have a change request from the company, bonus for staffs have many conditions more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;In table Bonus:&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;The bonus table is explained as follows:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;STRONG&gt;Bonus for new student enrollment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Bonus 1 =Number of New Student PD x Bonus of group&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; -Apply for condition type&amp;nbsp;NEW ENROLLMENT &amp;nbsp;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1. Area code : HCMC &amp;amp; SouthArea&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2.&lt;SPAN&gt;% Act vs Target of Campus is greater than and equal 80%&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3.# of New Student PD is greater than and equal 5&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Example:&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;Conditions apply for&amp;nbsp;type&amp;nbsp;NEW ENROLLMENT&lt;/P&gt;&lt;P&gt;1. Area code : New Area &amp;amp;&amp;nbsp; VT Area&lt;/P&gt;&lt;P&gt;2.&lt;SPAN&gt;% Act vs Target of Campus is greater than and equal 75%&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3.# of New Student PD is greater than and equal 3&lt;/P&gt;&lt;P&gt;&lt;img /&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;&lt;STRONG&gt;2. Bonus for new&amp;nbsp;revenue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bonus 2 = New Revenue PD x Bonus of group&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Conditions apply for&amp;nbsp;type&amp;nbsp;NEW REVENUE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;1. Area code : HCMC &amp;amp; SouthArea&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;2.&lt;SPAN&gt;% Act vs Target of Campus is greater than and equal 80%&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;3.New Revenue PD is greater than and equal 50,000,000&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Similar as&amp;nbsp; above, Conditions apply for&amp;nbsp;type&amp;nbsp;NEW REVENUE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;1. Area code :&amp;nbsp;New Area &amp;amp;&amp;nbsp; VT Area&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;2.&lt;SPAN&gt;% Act vs Target of Campus is greater than and equal 75%&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;3.New Revenue PD is greater than and equal 30,000,000&lt;/P&gt;&lt;P&gt;&lt;img /&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;&lt;STRONG&gt;3. Bonus for re enrollment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bonus 3 = # Student Re Enroll x % The corresponding bonus level according to the table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Conditions apply for&amp;nbsp;type Re Enrollment&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;1. Area code : all of area&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;2.% Re Enroll Student following percentage as :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;Example : Staff E have 30 student re enrollment and % Re Enroll Student is 120%&lt;/P&gt;&lt;P&gt;Bonus 3 = 30 x 20,000 = 600,000&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total Bonus = Bonus 1+ Bonus 2+Bonus 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;All of type condition are calculating for January because in February bonus will be change the value. Can the measure apply the conditions for month ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I make a power BI file with table data and bonus table in this link :&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1N3bYrYKtcwPUffFFsJWEe_GpJee3rfT7/view?usp=share_link" target="_self" rel="nofollow noopener noreferrer"&gt;https://drive.google.com/file/d/1N3bYrYKtcwPUffFFsJWEe_GpJee3rfT7/view?usp=share_link&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me to apply all of conditions for dax to calculate the bonus of staff ?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 01:10:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-find-the-dax/m-p/3070587#M106542</guid>
      <dc:creator>sakuragihana</dc:creator>
      <dc:date>2023-02-10T01:10:03Z</dc:date>
    </item>
  </channel>
</rss>

