<?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 new measure based on column value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858502#M6885</link>
    <description>&lt;P&gt;I have a pretty much beginner like question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A have a numbers field with sales amounts and my sum/measure must only contain the total amount of sales based on the value of another column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for instance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column A represents my filter value&lt;/P&gt;&lt;P&gt;I want a total sum/measure of Column B based on a specific content in Column A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont now if i explained myself correctly but if someone is willing to help i would be glad to provide some more info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 13:09:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-11-27T13:09:12Z</dc:date>
    <item>
      <title>new measure based on column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858502#M6885</link>
      <description>&lt;P&gt;I have a pretty much beginner like question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A have a numbers field with sales amounts and my sum/measure must only contain the total amount of sales based on the value of another column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for instance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column A represents my filter value&lt;/P&gt;&lt;P&gt;I want a total sum/measure of Column B based on a specific content in Column A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont now if i explained myself correctly but if someone is willing to help i would be glad to provide some more info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 13:09:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858502#M6885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-27T13:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: new measure based on column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858516#M6886</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try smth like&lt;/P&gt;&lt;PRE&gt;Measure = calculation(sum(ColumnB); FILTER('Table';'Table'[ColumnA]="yourValue"))&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to kudo useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 13:19:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858516#M6886</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2019-11-27T13:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: new measure based on column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858526#M6887</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp;thanks for your prompt response;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the best of my knowledge and your answer i did the following based on my data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure 2 = CALCULATE(SUM(Financieel[Aantal]; FILTER(Financieel; Financieel[DimTransactionTypeID]=2)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I get an error when i try to push this. any idea where i am going wrong?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Nov 2019 13:27:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858526#M6887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-27T13:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: new measure based on column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858528#M6888</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what kind of error?&lt;/P&gt;&lt;P&gt;i see you dint have a ")" here "&lt;SPAN&gt;SUM(Financieel[Aantal]&lt;/SPAN&gt;"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure 2 = CALCULATE(SUM(Financieel[Aantal]); FILTER(Financieel; Financieel[DimTransactionTypeID]=2))&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to kudo useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 13:30:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858528#M6888</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2019-11-27T13:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: new measure based on column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858534#M6890</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great, That did the trick!!! (simple typo)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And what if is want to ad 2 values for the SUM, so i want the total of value 1 and value 2&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 13:39:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858534#M6890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-27T13:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: new measure based on column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858541#M6892</link>
      <description>&lt;P&gt;&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try OR&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure 2 = CALCULATE(SUM(Financieel[Aantal]); FILTER(Financieel;OR( Financieel[DimTransactionTypeID]=2;Financieel[DimTransactionTypeID]=2)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to kudo useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 13:43:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858541#M6892</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2019-11-27T13:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: new measure based on column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858546#M6893</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And again, thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works great. As a beginner i am very glad with your prompt response and solution! Kudos&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 13:48:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/858546#M6893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-27T13:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: new measure based on column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/2944332#M97357</link>
      <description>&lt;P&gt;Just a question about the soulution with OR operator.&lt;BR /&gt;What is if these values have to be variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF DimTransactionTypeI = 1 --&amp;gt; then do the sum(DimTransactionTypeI = 1)&lt;/P&gt;&lt;P&gt;IF DimTransactionTypeI = 2 --&amp;gt;&amp;nbsp;then do the sum(DimTransactionTypeI = 2)&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 10:35:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-based-on-column-value/m-p/2944332#M97357</guid>
      <dc:creator>lsurmann</dc:creator>
      <dc:date>2022-12-02T10:35:53Z</dc:date>
    </item>
  </channel>
</rss>

