<?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 How to apply many conditions to a measure to calculate bonus in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3071594#M106646</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone, I have a report to calculate bonus of staff. But the condition to calculate bonus is complicated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The 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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Another 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;&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;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;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;&lt;STRONG&gt;Note&lt;/STRONG&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 everyone help me to apply all of conditions for dax to calculate the bonus of staff ?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2023 10:26:40 GMT</pubDate>
    <dc:creator>sakuragihana</dc:creator>
    <dc:date>2023-02-09T10:26:40Z</dc:date>
    <item>
      <title>How to apply many conditions to a measure to calculate bonus</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3071594#M106646</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone, I have a report to calculate bonus of staff. But the condition to calculate bonus is complicated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The 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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Another 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;&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;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;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;&lt;STRONG&gt;Note&lt;/STRONG&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 everyone help me to apply all of conditions for dax to calculate the bonus of staff ?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 10:26:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3071594#M106646</guid>
      <dc:creator>sakuragihana</dc:creator>
      <dc:date>2023-02-09T10:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply many conditions to a measure to calculate bonus</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3073901#M106800</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;LI-CODE lang="markup"&gt;bonus = 
VAR datekey = CALCULATE ( MIN ( 'Date'[DateKey] ), 'Date'[Date] = SELECTEDVALUE ( 'Table 2'[Date key] ) )
VAR new_students = SELECTEDVALUE ( 'Table 2'[# of New Student PD] )
VAR new_revenue = SELECTEDVALUE ( 'Table 2'[New Revenue PD] )
VAR re_enroll = SELECTEDVALUE ( 'Table 2'[# Student Re Enroll] )
VAR re_enroll_pct = SELECTEDVALUE ( 'Table 2'[% Re Enroll Student] ) * 100
VAR area = SELECTEDVALUE ( 'Table 2'[Area Code] )
VAR filtered_areas =
    CALCULATETABLE(
        DISTINCT('Table 1'[Area Code]),
        OR (
            'Table 1'[Area Code] IN { "HCMC", "SouthArea" } &amp;amp;&amp;amp; 'Table 1'[% Act vs Target] &amp;gt;= 0.8,
            'Table 1'[Area Code] IN { "NewArea", "VT Area" } &amp;amp;&amp;amp; 'Table 1'[% Act vs Target] &amp;gt;= 0.75
        )
    )
VAR bonus_1_t =
    FILTER (
        'Bonus data',
        'Bonus data'[Min] &amp;lt;= new_students
            &amp;amp;&amp;amp; 'Bonus data'[Area Code] = area
            &amp;amp;&amp;amp; 'Bonus data'[Type] = "NEW ENROLLMENT"
            &amp;amp;&amp;amp; 'Bonus data'[Date key] = datekey
    )
VAR bonus_2_t =
    FILTER (
        'Bonus data',
        'Bonus data'[Min] &amp;lt;= new_revenue
            &amp;amp;&amp;amp; 'Bonus data'[Area Code] = area
            &amp;amp;&amp;amp; 'Bonus data'[Type] = "NEW REVENUE"
            &amp;amp;&amp;amp; 'Bonus data'[Date key] = datekey
    )
VAR bonus_3_t = 
    FILTER ( 
        'Bonus data', 
        'Bonus data'[Min] &amp;lt;= re_enroll_pct
            &amp;amp;&amp;amp; 'Bonus data'[Max] &amp;gt;= re_enroll_pct
            &amp;amp;&amp;amp; 'Bonus data'[Area Code] = area
            &amp;amp;&amp;amp; 'Bonus data'[Type] = "RE ENROLLMENT" 
            &amp;amp;&amp;amp; 'Bonus data'[Date key] = datekey
    )
VAR bonuses_calc_1 =
    SUMX (
        ADDCOLUMNS (
            bonus_1_t,
            "@bonus_calc",
                VAR current_bonus = [Bonus ]
                VAR prev_limit_running = SUMX ( FILTER ( bonus_1_t, [Bonus ] &amp;lt; current_bonus ), [Max] )
                VAR students_diff = new_students - prev_limit_running
                VAR students = IF ( students_diff &amp;lt; 0, BLANK (), students_diff )
                RETURN
                    MIN ( [Max], students ) * [Bonus ]
        ),
        [@bonus_calc]
    ) 
VAR bonuses_calc_2 =
    SUMX (
        ADDCOLUMNS (
            bonus_2_t,
            "@bonus_calc",
                VAR current_bonus = [Bonus ]
                VAR prev_limit_running = SUMX ( FILTER ( bonus_2_t, [Bonus ] &amp;lt; current_bonus ), [Max] )
                VAR students_diff = new_revenue - prev_limit_running
                VAR students = IF ( students_diff &amp;lt; 0, BLANK (), students_diff )
                RETURN
                    MIN ( [Max], students ) * [Bonus ]
        ),
        [@bonus_calc]
    ) + 0
VAR bonus_1 = IF ( area in filtered_areas, bonuses_calc_1 )
VAR bonus_2 = IF ( area in filtered_areas, bonuses_calc_2 )
VAR bonus_3 = MAXX ( bonus_3_t, [Bonus ]) * re_enroll + 0
RETURN 
    bonus_1 + bonus_2 + bonus_3&lt;/LI-CODE&gt;&lt;P&gt;Apart from that you need to pay attention to your data. Things like this won't allow you to see correct bonus_3, but the measure is working.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 08:02:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3073901#M106800</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2023-02-10T08:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply many conditions to a measure to calculate bonus</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3073951#M106803</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you sent me a power bi file ? Thank you so much&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 08:20:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3073951#M106803</guid>
      <dc:creator>sakuragihana</dc:creator>
      <dc:date>2023-02-10T08:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply many conditions to a measure to calculate bonus</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3074183#M106815</link>
      <description>&lt;P&gt;Unfortunately, not. Just use your file you've put here and add the measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 09:49:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3074183#M106815</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2023-02-10T09:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply many conditions to a measure to calculate bonus</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3074273#M106824</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Can you sent me a power bi file because I want to see the table Date ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My file is error, maybe the table Date is different of yours&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 10:18:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3074273#M106824</guid>
      <dc:creator>sakuragihana</dc:creator>
      <dc:date>2023-02-10T10:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply many conditions to a measure to calculate bonus</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3077143#M107030</link>
      <description>&lt;P&gt;As I've mentioned before, unfortunately I can't.&lt;/P&gt;&lt;P&gt;Date table contains Date column and DateKey to match all the tables.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 07:21:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3077143#M107030</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2023-02-13T07:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply many conditions to a measure to calculate bonus</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3077315#M107043</link>
      <description>&lt;P&gt;Hi ERD,&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;VAR bonus_3 = MAXX ( bonus_3_t, [Bonus ]) * re_enroll + 0&lt;/PRE&gt;&lt;P&gt;Bonus 3 may be not working , all of result of bonus 3 is zero.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 09:00:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3077315#M107043</guid>
      <dc:creator>sakuragihana</dc:creator>
      <dc:date>2023-02-13T09:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply many conditions to a measure to calculate bonus</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3077436#M107047</link>
      <description>&lt;P&gt;Yes, as I've mentioned before:&lt;/P&gt;&lt;P&gt;Apart from that you need to pay attention to your data. Things like this won't allow you to see correct bonus_3, but the measure is working.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Correct the data and bonus 3 will be calculated correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 09:57:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3077436#M107047</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2023-02-13T09:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply many conditions to a measure to calculate bonus</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3087293#M107983</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the February , the condition of [% Act vs Target] is changed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;'Table 1'[% Act vs Target] &amp;gt;=0.8 is the same for all of area at February&amp;nbsp; . How can I change the dax without effect in January ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 07:30:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3087293#M107983</guid>
      <dc:creator>sakuragihana</dc:creator>
      <dc:date>2023-02-20T07:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply many conditions to a measure to calculate bonus</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3087402#M107992</link>
      <description>&lt;P&gt;If it is a one-time thing, you set up additional condition to check the dates. But in case your conditions for the&amp;nbsp;&lt;SPAN&gt;% Act vs Target change often, I'd create a separate table to keep those conditions per month and area, otherwise your formula will be endless.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 08:30:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-apply-many-conditions-to-a-measure-to-calculate-bonus/m-p/3087402#M107992</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2023-02-20T08:30:06Z</dc:date>
    </item>
  </channel>
</rss>

