<?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 with deduping code in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-deduping-code/m-p/4798545#M183607</link>
    <description>&lt;P&gt;Please include, in a usable format, not an image, a small set of rows for each of the tables involved in your request and show the data model in a picture, so that we can import the tables in Power BI and reproduce the data model. The subset of rows you provide, even is just a subset of the original tables, must cover your issue or question completely. Do not include sensitive information and do not include anything that is unrelated to the issue or question. Please show the expected outcome based on the sample data you provided and make sure, in case you show a Power BI visual, to clarify the columns used in the grouping sections of the visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;click here &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;click here &lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Aug 2025 08:24:59 GMT</pubDate>
    <dc:creator>FBergamaschi</dc:creator>
    <dc:date>2025-08-16T08:24:59Z</dc:date>
    <item>
      <title>Help with deduping code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-deduping-code/m-p/4798372#M183603</link>
      <description>&lt;P&gt;Hi! Can someone help me please dedupe this DAX? It is resulting in the sample below. I would like to only see one portion of this text, I do not want it repeated. Please help!&lt;BR /&gt;&lt;BR /&gt;"Received a second merit adjustment to $/hr effective September 2022: Base Year 0: 5.00% Plan Year 1: 5.00% Plan Year 2: 5.00% Plan Year 3: 5.00% Plan Year 4: 5.00% Plan Year 5: 0.00%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Received a second merit adjustment to $/hr effective September 2022: Base Year 0: 5.00% Plan Year 1: 5.00% Plan Year 2: 5.00% Plan Year 3: 5.00% Plan Year 4: 5.00% Plan Year 5: 0.00% $31,862 6,000,120.00 %"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF (&lt;BR /&gt;HASONEVALUE ( 'PayBUDMngrInput'[EMPLOYEE] ),&lt;BR /&gt;VAR vrRawTable =&lt;BR /&gt;FILTER (&lt;BR /&gt;'PayBUDMngrInput',&lt;BR /&gt;'PayBUDMngrInput'[RecordType]&lt;BR /&gt;IN { "Adjustments to merit", "Adjustments to merit2" }&lt;BR /&gt;&amp;amp;&amp;amp; 'PayBUDMngrInput'[IsApproved] = TRUE ()&lt;BR /&gt;)&lt;BR /&gt;VAR vrTable =&lt;BR /&gt;ADDCOLUMNS (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;vrRawTable,&lt;BR /&gt;'PayBUDMngrInput'[RecordType],&lt;BR /&gt;'PayBUDMngrInput'[AdjustAmount],&lt;BR /&gt;'PayBUDMngrInput'[YRMO],&lt;BR /&gt;'PayBUDMngrInput'[MeritAdjustBaseYr],&lt;BR /&gt;'PayBUDMngrInput'[MeritAdjustPlanYr1],&lt;BR /&gt;'PayBUDMngrInput'[MeritAdjustPlanYr2],&lt;BR /&gt;'PayBUDMngrInput'[MeritAdjustPlanYr3],&lt;BR /&gt;'PayBUDMngrInput'[MeritAdjustPlanYr4],&lt;BR /&gt;'PayBUDMngrInput'[MeritAdjustPlanYr5]&lt;BR /&gt;),&lt;BR /&gt;"DisplayRecord",&lt;BR /&gt;IF (&lt;BR /&gt;SELECTEDVALUE ( 'PayBUDMngrInput'[RecordType] ) = "Adjustments to merit",&lt;BR /&gt;"Received a merit adjustment",&lt;BR /&gt;"Received a second merit adjustment"&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;COUNTROWS ( vrTable ) &amp;gt; 0,&lt;BR /&gt;CONCATENATEX (&lt;BR /&gt;vrTable,&lt;BR /&gt;[DisplayRecord] &amp;amp; " to "&lt;BR /&gt;&amp;amp; FORMAT ( [AdjustAmount], "$###,###/hr" ) &amp;amp; " effective " &amp;amp; [YRMO] &amp;amp; ": "&lt;BR /&gt;&amp;amp; UNICHAR ( 10 ) &amp;amp; "Base Year 0: "&lt;BR /&gt;&amp;amp; FORMAT ( [MeritAdjustBaseYr], "##0.00%" )&lt;BR /&gt;&amp;amp; UNICHAR ( 10 ) &amp;amp; "Plan Year 1: "&lt;BR /&gt;&amp;amp; FORMAT ( [MeritAdjustPlanYr1], "##0.00%" )&lt;BR /&gt;&amp;amp; UNICHAR ( 10 ) &amp;amp; "Plan Year 2: "&lt;BR /&gt;&amp;amp; FORMAT ( [MeritAdjustPlanYr2], "##0.00%" )&lt;BR /&gt;&amp;amp; UNICHAR ( 10 ) &amp;amp; "Plan Year 3: "&lt;BR /&gt;&amp;amp; FORMAT ( [MeritAdjustPlanYr3], "##0.00%" )&lt;BR /&gt;&amp;amp; UNICHAR ( 10 ) &amp;amp; "Plan Year 4: "&lt;BR /&gt;&amp;amp; FORMAT ( [MeritAdjustPlanYr4], "##0.00%" )&lt;BR /&gt;&amp;amp; UNICHAR ( 10 ) &amp;amp; "Plan Year 5: "&lt;BR /&gt;&amp;amp; FORMAT ( [MeritAdjustPlanYr5], "##0.00%" )&lt;BR /&gt;&amp;amp; UNICHAR ( 10 )&lt;BR /&gt;&amp;amp; UNICHAR ( 10 ),&lt;BR /&gt;UNICHAR ( 10 ),&lt;BR /&gt;[RecordType], DESC&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;IF (&lt;BR /&gt;HASONEVALUE ( 'EMPLOYEE'[EMPLOYEE name] ),&lt;BR /&gt;"--No Manager Inputs for Employee --",&lt;BR /&gt;"--Click on a single Employee--"&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 23:45:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-deduping-code/m-p/4798372#M183603</guid>
      <dc:creator>LupinAinsworth</dc:creator>
      <dc:date>2025-08-15T23:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with deduping code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-deduping-code/m-p/4798545#M183607</link>
      <description>&lt;P&gt;Please include, in a usable format, not an image, a small set of rows for each of the tables involved in your request and show the data model in a picture, so that we can import the tables in Power BI and reproduce the data model. The subset of rows you provide, even is just a subset of the original tables, must cover your issue or question completely. Do not include sensitive information and do not include anything that is unrelated to the issue or question. Please show the expected outcome based on the sample data you provided and make sure, in case you show a Power BI visual, to clarify the columns used in the grouping sections of the visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;click here &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;click here &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Aug 2025 08:24:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-deduping-code/m-p/4798545#M183607</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-08-16T08:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with deduping code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-deduping-code/m-p/4799665#M183637</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="653857" data-lia-user-login="LupinAinsworth" class="lia-mention lia-mention-user"&gt;LupinAinsworth&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1287762" data-lia-user-login="FBergamaschi" class="lia-mention lia-mention-user"&gt;FBergamaschi&lt;/a&gt;&amp;nbsp;,&amp;nbsp;for your response. With a small sample dataset (in text or table format), the model view, and the expected outcome, we will be able to successfully reproduce the issue in Power BI and deliver an effective solution.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 10:03:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-deduping-code/m-p/4799665#M183637</guid>
      <dc:creator>v-tejrama</dc:creator>
      <dc:date>2025-08-18T10:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with deduping code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-deduping-code/m-p/4803112#M183726</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="653857" data-lia-user-login="LupinAinsworth" class="lia-mention lia-mention-user"&gt;LupinAinsworth&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Tejaswi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 06:43:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-deduping-code/m-p/4803112#M183726</guid>
      <dc:creator>v-tejrama</dc:creator>
      <dc:date>2025-08-21T06:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with deduping code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-deduping-code/m-p/4805862#M183823</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="653857" data-lia-user-login="LupinAinsworth" class="lia-mention lia-mention-user"&gt;LupinAinsworth&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just checking in have you been able to resolve this issue? If so, it would be greatly appreciated if you could mark the most helpful reply accordingly. This helps other community members quickly find relevant solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Tejaswi.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Aug 2025 10:07:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-deduping-code/m-p/4805862#M183823</guid>
      <dc:creator>v-tejrama</dc:creator>
      <dc:date>2025-08-24T10:07:17Z</dc:date>
    </item>
  </channel>
</rss>

