<?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: Different calculation for each row based on a different column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-calculation-for-each-row-based-on-a-different-column/m-p/2125000#M48733</link>
    <description>&lt;P&gt;Hello together&lt;/P&gt;&lt;P&gt;Yesterday I found a solution that suits me in a different way. Thank you very much for your feedback.&lt;/P&gt;&lt;P&gt;Best Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Soooma&lt;/P&gt;</description>
    <pubDate>Sat, 09 Oct 2021 07:34:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-09T07:34:25Z</dc:date>
    <item>
      <title>Different calculation for each row based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-calculation-for-each-row-based-on-a-different-column/m-p/2123555#M48695</link>
      <description>&lt;P&gt;Hello experts&lt;/P&gt;&lt;P&gt;I am new to Power BI and have a question how to implement the following scenario:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dashboard in which the turnover category is displayed in the first column and a column in which the turnover for the category is displayed. Both come from different tables. However, the calculation is not the same for each category. How can I make a calculation based on the category shown in column 1? Simplified example:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Turnover&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;Field A + Field B&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;Field A + Field C&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;Field A + Field C - Field B&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;It is not clear to me how I can build a different calculation for each row in column "Turnover" based on column "Category".&lt;/P&gt;&lt;P&gt;I have tried to work with a SWITCH statement. But that doesn't work somehow, but it still uses the same formula for each line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 08:23:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-calculation-for-each-row-based-on-a-different-column/m-p/2123555#M48695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-08T08:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Different calculation for each row based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-calculation-for-each-row-based-on-a-different-column/m-p/2123601#M48696</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you provide the statement you tried to use? Also, would you like to create a calculated column or a measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jori&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 08:46:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-calculation-for-each-row-based-on-a-different-column/m-p/2123601#M48696</guid>
      <dc:creator>jppv20</dc:creator>
      <dc:date>2021-10-08T08:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Different calculation for each row based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-calculation-for-each-row-based-on-a-different-column/m-p/2123920#M48706</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide some sample data? This will be of use for anyone trying to help you to achieve the desired outcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking forward to the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 10:41:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-calculation-for-each-row-based-on-a-different-column/m-p/2123920#M48706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-08T10:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Different calculation for each row based on a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-calculation-for-each-row-based-on-a-different-column/m-p/2125000#M48733</link>
      <description>&lt;P&gt;Hello together&lt;/P&gt;&lt;P&gt;Yesterday I found a solution that suits me in a different way. Thank you very much for your feedback.&lt;/P&gt;&lt;P&gt;Best Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Soooma&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 07:34:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-calculation-for-each-row-based-on-a-different-column/m-p/2125000#M48733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-09T07:34:25Z</dc:date>
    </item>
  </channel>
</rss>

