<?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: Measure to identity values in one column which have multiple values in another column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-identity-values-in-one-column-which-have-multiple/m-p/4097675#M162598</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="735521" data-lia-user-login="petrawiggin" class="lia-mention lia-mention-user"&gt;petrawiggin&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;This was originally created as a DAX Measure.&lt;/P&gt;
&lt;P&gt;What you are doing above is trying to use DAX as an M Query in PQ.&lt;/P&gt;
&lt;P&gt;Once you have loaded all of your data, go to your Power BI report&amp;nbsp; and create a "New Measure.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2024 12:58:30 GMT</pubDate>
    <dc:creator>rsbin</dc:creator>
    <dc:date>2024-08-13T12:58:30Z</dc:date>
    <item>
      <title>Measure to identity values in one column which have multiple values in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-identity-values-in-one-column-which-have-multiple/m-p/4009278#M157625</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a measure to return True if there is more than one unique value for each unique value in another column. So in the below example, it should return False for value 1 in ID1 (as there is only 1 unique value in ID2) but True for value 2 in ID1 (because there are 2 unique values in ID2).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;T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      <pubDate>Tue, 25 Jun 2024 14:05:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-identity-values-in-one-column-which-have-multiple/m-p/4009278#M157625</guid>
      <dc:creator>tgjones43</dc:creator>
      <dc:date>2024-06-25T14:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to identity values in one column which have multiple values in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-identity-values-in-one-column-which-have-multiple/m-p/4009407#M157635</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="93279" data-lia-user-login="tgjones43" class="lia-mention lia-mention-user"&gt;tgjones43&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Hope this Measure works for you:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Unique = IF( CALCULATE( DISTINCTCOUNT( 'Table'[ID2] ),
                 ALLEXCEPT( 'Table','Table'[ID1] )) = 1, 
                 "False", "True" )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 15:23:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-identity-values-in-one-column-which-have-multiple/m-p/4009407#M157635</guid>
      <dc:creator>rsbin</dc:creator>
      <dc:date>2024-06-25T15:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to identity values in one column which have multiple values in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-identity-values-in-one-column-which-have-multiple/m-p/4009463#M157675</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192673" data-lia-user-login="rsbin" class="lia-mention lia-mention-user"&gt;rsbin&lt;/a&gt;&amp;nbsp;it does, thank you! As a calculated column, rather than a measure, but that's fine.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 16:08:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-identity-values-in-one-column-which-have-multiple/m-p/4009463#M157675</guid>
      <dc:creator>tgjones43</dc:creator>
      <dc:date>2024-06-25T16:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to identity values in one column which have multiple values in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-identity-values-in-one-column-which-have-multiple/m-p/4092715#M162418</link>
      <description>&lt;P&gt;UPDATE: I forgot that my file was a csv, which was preventing me from adding measures.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, I'm not sure that it's working right now that I was able to create it. What is the way that this could be created as a calculated column,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="93279" data-lia-user-login="tgjones43" class="lia-mention lia-mention-user"&gt;tgjones43&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;Hello. I think this solution is just what I need for my own data except I don't understand where to put this function. I'm sure this is very basic information but can you please demonstrate where I put this? My data is a table loaded from a power query query.&lt;/P&gt;&lt;P&gt;When I try to put it in as a step in my query I get an error "Expression.Error: The name 'IF' wasn't recognized. Make sure it's spelled correctly." If I change "IF" to "if" I get an error saying then is expected, then else is expected then "Token Eof expected". If I then remove the ) at the end it says "CALCULATE" isn't recognized.&lt;BR /&gt;I get the same when I try to make this a function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is supposed to be a pivot table measure, I can't figure out how to get a measure in (the options under power pivot are always all greyed out, even when I add a pivot table).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be apprectiated.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2024 00:36:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-identity-values-in-one-column-which-have-multiple/m-p/4092715#M162418</guid>
      <dc:creator>petrawiggin</dc:creator>
      <dc:date>2024-08-10T00:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to identity values in one column which have multiple values in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-identity-values-in-one-column-which-have-multiple/m-p/4097675#M162598</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="735521" data-lia-user-login="petrawiggin" class="lia-mention lia-mention-user"&gt;petrawiggin&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;This was originally created as a DAX Measure.&lt;/P&gt;
&lt;P&gt;What you are doing above is trying to use DAX as an M Query in PQ.&lt;/P&gt;
&lt;P&gt;Once you have loaded all of your data, go to your Power BI report&amp;nbsp; and create a "New Measure.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 12:58:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-identity-values-in-one-column-which-have-multiple/m-p/4097675#M162598</guid>
      <dc:creator>rsbin</dc:creator>
      <dc:date>2024-08-13T12:58:30Z</dc:date>
    </item>
  </channel>
</rss>

