<?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: Need help! Apply minimum wage increase for applied month and all months after in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-Apply-minimum-wage-increase-for-applied-month-and-all/m-p/4057677#M161045</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;please share your sample pbix file's link, and then I can try to look into it.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2024 02:50:47 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2024-07-24T02:50:47Z</dc:date>
    <item>
      <title>Need help! Apply minimum wage increase for applied month and all months after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-Apply-minimum-wage-increase-for-applied-month-and-all/m-p/4054594#M160903</link>
      <description>&lt;P&gt;Hi All! I am trying to calculate base rates for employees by month. I have minimum wage changes for different employees by month.&lt;/P&gt;&lt;P&gt;I have the wage changes as a % by the employee as an import. I also have their base rates. These two tables and the Year &amp;amp; Month table are all connected by valid and active relationships.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a new measure that takes the base rate and multiplies by the wage change (with keeping the regular base rate if there is no wage change). BUT, I want that new wage to stay for future months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex:&amp;nbsp;&lt;BR /&gt;Employee A has a rate of $15 for beginning of 2024 for each month. Starting in July, they have a % change of 103%. I would like July, August, September, etc. to show the new wage of 15+103%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you SO much!!!!!!!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 20:13:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-Apply-minimum-wage-increase-for-applied-month-and-all/m-p/4054594#M160903</guid>
      <dc:creator>afree</dc:creator>
      <dc:date>2024-07-22T20:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help! Apply minimum wage increase for applied month and all months after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-Apply-minimum-wage-increase-for-applied-month-and-all/m-p/4055214#M160926</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;&lt;A href="https://learn.microsoft.com/en-us/dax/window-function-dax?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;WINDOW function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/productx-function-dax?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;PRODUCTX function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;expected result measureL = 
VAR _basewage = SUM( employee_base_wage[base_wage] )
VAR _increment =
    CALCULATE(
        PRODUCTX(
            ADDCOLUMNS( VALUES( calendar[month-year sort] ), "@increment", CALCULATE( SUM( increment[increment] ) ) ),
            [@increment]
        ),
        WINDOW(
            1,
            ABS,
            0,
            REL,
            ALL( calendar[month-year sort], calendar[month-year] ),
            ORDERBY( calendar[month-year sort], ASC )
        )
    )
RETURN
    IF( HASONEVALUE( employee_base_wage[employee] ), _basewage * _increment )&lt;/LI-CODE&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>Tue, 23 Jul 2024 03:15:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-Apply-minimum-wage-increase-for-applied-month-and-all/m-p/4055214#M160926</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-07-23T03:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need help! Apply minimum wage increase for applied month and all months after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-Apply-minimum-wage-increase-for-applied-month-and-all/m-p/4056891#M161001</link>
      <description>&lt;P&gt;Hi, thank you so much for your fast response. I really appreciate it because I am still having trouble. I have attached a screenshot of an example of what I am seeing on my end. The formula you provided unfortunately does not work for me. I do not have month order sorts and am not sure what to put in the "@increment" portion of the formula on the addcolumns line.&lt;BR /&gt;&lt;BR /&gt;Role B and C have minimum wage changes in April of 2022. Their original rates were 18.62 and 17.61 respectfully. With the % change increase, their new rates should be 19.18 and 18.14 respectfully. I was able to create a formula titled "Wages with Minimum Wage Change in Effect" that keeps the new wage for the future months but for some reason it is only sticking for May, and not June or July.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; I also created a Wage Rate with % change formula but of course it only applies the % change for that specific month.&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need to update the formula to have the $19.18 and $18.14 show as the wage for April onwards. But prior to April, I would want the original $18.62 and $17.61 to show. Additionally, for Roles that don't have minimum wage changes, I would like to keep the original Base rate.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 15:34:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-Apply-minimum-wage-increase-for-applied-month-and-all/m-p/4056891#M161001</guid>
      <dc:creator>afree</dc:creator>
      <dc:date>2024-07-23T15:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help! Apply minimum wage increase for applied month and all months after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-Apply-minimum-wage-increase-for-applied-month-and-all/m-p/4057677#M161045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;please share your sample pbix file's link, and then I can try to look into it.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 02:50:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-Apply-minimum-wage-increase-for-applied-month-and-all/m-p/4057677#M161045</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-07-24T02:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need help! Apply minimum wage increase for applied month and all months after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-Apply-minimum-wage-increase-for-applied-month-and-all/m-p/4074123#M161760</link>
      <description>&lt;P&gt;Hi, I am unsure how to share the PBI link as this is from my companys OneDrive. I don't believe it would be beneficial because this is not the same as the one I am using due to important internal information. The relationships are not necessarily the same. Please refer to my screenshots for the issue with the formula. The formula is not applying after May when it needs to continue being applied to June and July. Does that make sense? Sorry I can't provide more information! Are there other formulas or screenshots that would be helpful?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 17:30:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-Apply-minimum-wage-increase-for-applied-month-and-all/m-p/4074123#M161760</guid>
      <dc:creator>afree</dc:creator>
      <dc:date>2024-08-01T17:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help! Apply minimum wage increase for applied month and all months after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-Apply-minimum-wage-increase-for-applied-month-and-all/m-p/4082240#M162047</link>
      <description>&lt;P&gt;&lt;A href="https://hennesandmauritz.sharepoint.com/:u:/r/sites/USControlling/Shared%20Documents/Reports/Analyst%20Reporting/Example%20PBI%20Salary/Example.pbix?csf=1&amp;amp;web=1&amp;amp;e=24OCLa" target="_blank" rel="noopener"&gt;Example PBI&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 19:38:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-Apply-minimum-wage-increase-for-applied-month-and-all/m-p/4082240#M162047</guid>
      <dc:creator>afree</dc:creator>
      <dc:date>2024-08-05T19:38:45Z</dc:date>
    </item>
  </channel>
</rss>

