<?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: Calculate a SRP price depending the part type and the values of the CCR Price in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-SRP-price-depending-the-part-type-and-the-values-of/m-p/2497547#M68950</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="386592" data-lia-user-login="Jadreani" class="lia-mention lia-mention-user"&gt;Jadreani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope the below calculated column would help you. Try and let me know.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SRP Price = 
SWITCH(TRUE(),AND(SRP[Part type]="BA",SRP[CCR]&amp;lt;=40),250,
AND(SRP[Part type]="BA",and(SRP[CCR]&amp;gt;=40,SRP[CCR]&amp;lt;=99)),400,
AND(SRP[Part type]="BA",and(SRP[CCR]&amp;gt;=100,SRP[CCR]&amp;lt;=200)),500,
AND(SRP[Part type]="BA",SRP[CCR]&amp;gt;200),SRP[CCR]*3.5,
AND(SRP[Part type]="HB0",SRP[CCR]&amp;lt;=20),100,
AND(SRP[Part type]="HB0",and(SRP[CCR]&amp;gt;=21,SRP[CCR]&amp;lt;=99)),200,
AND(SRP[Part type]="HB0",and(SRP[CCR]&amp;gt;=100,SRP[CCR]&amp;lt;=150)),300,
AND(SRP[Part type]="HB0",SRP[CCR]&amp;gt;150),SRP[CCR]*5
)&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;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 05:11:14 GMT</pubDate>
    <dc:creator>Arul</dc:creator>
    <dc:date>2022-05-06T05:11:14Z</dc:date>
    <item>
      <title>Calculate a SRP price depending the part type and the values of the CCR Price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-SRP-price-depending-the-part-type-and-the-values-of/m-p/2497020#M68929</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some help regarding a calculation of a SRP price's part.&lt;/P&gt;&lt;P&gt;The first condition is the part type of the part.&lt;/P&gt;&lt;P&gt;For each part type, I must calculate the SRP price based on the CCR price value with multiple comparison operators (equal or less than ** price) and as well a coefficient.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;If the part type is "BA0" AND&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if the CCR &lt;SPAN&gt;Less than or equal to&lt;/SPAN&gt;&amp;nbsp;40, then the SRP Price will be 250&lt;/LI&gt;&lt;LI&gt;If the CCR price is between 41 and 99, then the SRP Price will be 400&lt;/LI&gt;&lt;LI&gt;if the CCR price is between 100 and 200, then the SRP Price will be 500&lt;/LI&gt;&lt;LI&gt;if the CCR prise is greater than 200, then the SRP price will be calculcated based on CCR price * 3.5&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If the part type is "HB0" AND&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if the CCR &lt;SPAN&gt;Less than or equal to&lt;/SPAN&gt;&amp;nbsp;20, then the SRP Price will be 100&lt;/LI&gt;&lt;LI&gt;If the CCR price is between 21 and 99, then the SRP Price will be 200&lt;/LI&gt;&lt;LI&gt;if the CCR price is between 100 and 150, then the SRP Price will be 300&lt;/LI&gt;&lt;LI&gt;if the CCR prise is greater than 150, then the SRP price will be calculcated based on CCR price * 5&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find below a data sample:&lt;/P&gt;&lt;P&gt;Thanks a lot in advance for your kind help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Article Reference&lt;/TD&gt;&lt;TD&gt;Part type&lt;/TD&gt;&lt;TD&gt;CCR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BA0195&lt;/TD&gt;&lt;TD&gt;BA&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BA0196&lt;/TD&gt;&lt;TD&gt;BA&lt;/TD&gt;&lt;TD&gt;75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BA0244&lt;/TD&gt;&lt;TD&gt;BA&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BA0253&lt;/TD&gt;&lt;TD&gt;BA&lt;/TD&gt;&lt;TD&gt;389&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BA0254&lt;/TD&gt;&lt;TD&gt;BA&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;HB0067&lt;/TD&gt;&lt;TD&gt;HB0&lt;/TD&gt;&lt;TD&gt;125&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;HB0076&lt;/TD&gt;&lt;TD&gt;HB0&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;HB0079&lt;/TD&gt;&lt;TD&gt;HB0&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;HB0080&lt;/TD&gt;&lt;TD&gt;HB0&lt;/TD&gt;&lt;TD&gt;230&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;HB0081&lt;/TD&gt;&lt;TD&gt;HB0&lt;/TD&gt;&lt;TD&gt;110&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 05 May 2022 21:02:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-SRP-price-depending-the-part-type-and-the-values-of/m-p/2497020#M68929</guid>
      <dc:creator>Jadreani</dc:creator>
      <dc:date>2022-05-05T21:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate a SRP price depending the part type and the values of the CCR Price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-SRP-price-depending-the-part-type-and-the-values-of/m-p/2497547#M68950</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="386592" data-lia-user-login="Jadreani" class="lia-mention lia-mention-user"&gt;Jadreani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope the below calculated column would help you. Try and let me know.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SRP Price = 
SWITCH(TRUE(),AND(SRP[Part type]="BA",SRP[CCR]&amp;lt;=40),250,
AND(SRP[Part type]="BA",and(SRP[CCR]&amp;gt;=40,SRP[CCR]&amp;lt;=99)),400,
AND(SRP[Part type]="BA",and(SRP[CCR]&amp;gt;=100,SRP[CCR]&amp;lt;=200)),500,
AND(SRP[Part type]="BA",SRP[CCR]&amp;gt;200),SRP[CCR]*3.5,
AND(SRP[Part type]="HB0",SRP[CCR]&amp;lt;=20),100,
AND(SRP[Part type]="HB0",and(SRP[CCR]&amp;gt;=21,SRP[CCR]&amp;lt;=99)),200,
AND(SRP[Part type]="HB0",and(SRP[CCR]&amp;gt;=100,SRP[CCR]&amp;lt;=150)),300,
AND(SRP[Part type]="HB0",SRP[CCR]&amp;gt;150),SRP[CCR]*5
)&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;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 05:11:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-SRP-price-depending-the-part-type-and-the-values-of/m-p/2497547#M68950</guid>
      <dc:creator>Arul</dc:creator>
      <dc:date>2022-05-06T05:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate a SRP price depending the part type and the values of the CCR Price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-SRP-price-depending-the-part-type-and-the-values-of/m-p/2497739#M68968</link>
      <description>&lt;P&gt;Dear Arul,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm so grateful you helped me. Thanks very much, so appreciated!&lt;/P&gt;&lt;P&gt;Kindest regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jean-Yves&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 06:36:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-SRP-price-depending-the-part-type-and-the-values-of/m-p/2497739#M68968</guid>
      <dc:creator>Jadreani</dc:creator>
      <dc:date>2022-05-06T06:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate a SRP price depending the part type and the values of the CCR Price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-SRP-price-depending-the-part-type-and-the-values-of/m-p/2497802#M68971</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="386592" data-lia-user-login="Jadreani" class="lia-mention lia-mention-user"&gt;Jadreani&lt;/a&gt;&amp;nbsp;,Thank you.&lt;/P&gt;&lt;P&gt;If it solves your problem do a thumps up and accept the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 07:01:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-SRP-price-depending-the-part-type-and-the-values-of/m-p/2497802#M68971</guid>
      <dc:creator>Arul</dc:creator>
      <dc:date>2022-05-06T07:01:31Z</dc:date>
    </item>
  </channel>
</rss>

