<?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 unique values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-unique-values/m-p/3696056#M143733</link>
    <description>&lt;P&gt;thank you dear Liu&lt;BR /&gt;in fact this should not be 3 ,&amp;nbsp;&lt;BR /&gt;in USA we have 2 cycles in project 1 + 3 cycles in project 2 = 6 unique cycles&lt;BR /&gt;in India we have 1 cycle in project 1 = 1 unique project&lt;BR /&gt;the total should be 7&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 09:56:25 GMT</pubDate>
    <dc:creator>haniizz</dc:creator>
    <dc:date>2024-02-13T09:56:25Z</dc:date>
    <item>
      <title>Help with unique values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-unique-values/m-p/3693579#M143590</link>
      <description>&lt;P&gt;Hello Community&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I need your kind help , how can I get the unique value to measure the ( number of Cycles ) when I have like this data&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Project&lt;/TD&gt;&lt;TD&gt;cycle&lt;/TD&gt;&lt;TD&gt;country&lt;/TD&gt;&lt;TD&gt;Budget&lt;/TD&gt;&lt;TD&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Project1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;USA&lt;/TD&gt;&lt;TD&gt;1,000000&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Done&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Project1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;India&lt;/TD&gt;&lt;TD&gt;1,500000&lt;/TD&gt;&lt;TD&gt;Done&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Project1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;USA&lt;/TD&gt;&lt;TD&gt;2,500000&lt;/TD&gt;&lt;TD&gt;Done&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Project2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;USA&lt;/TD&gt;&lt;TD&gt;1,003000&lt;/TD&gt;&lt;TD&gt;Done&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Project2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;USA&lt;/TD&gt;&lt;TD&gt;1,500000&lt;/TD&gt;&lt;TD&gt;Done&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Project2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;USA&lt;/TD&gt;&lt;TD&gt;2,000000&lt;/TD&gt;&lt;TD&gt;Done&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 12 Feb 2024 08:15:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-unique-values/m-p/3693579#M143590</guid>
      <dc:creator>haniizz</dc:creator>
      <dc:date>2024-02-12T08:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with unique values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-unique-values/m-p/3695144#M143689</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="439066" data-lia-user-login="haniizz" class="lia-mention lia-mention-user"&gt;haniizz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
CALCULATE(
    DISTINCTCOUNT('Table'[cycle]),ALL('Table'))&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 01:43:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-unique-values/m-p/3695144#M143689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-13T01:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with unique values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-unique-values/m-p/3696056#M143733</link>
      <description>&lt;P&gt;thank you dear Liu&lt;BR /&gt;in fact this should not be 3 ,&amp;nbsp;&lt;BR /&gt;in USA we have 2 cycles in project 1 + 3 cycles in project 2 = 6 unique cycles&lt;BR /&gt;in India we have 1 cycle in project 1 = 1 unique project&lt;BR /&gt;the total should be 7&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 09:56:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-unique-values/m-p/3696056#M143733</guid>
      <dc:creator>haniizz</dc:creator>
      <dc:date>2024-02-13T09:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with unique values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-unique-values/m-p/3696294#M143746</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="439066" data-lia-user-login="haniizz" class="lia-mention lia-mention-user"&gt;haniizz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the following functions:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 =
var _table=
SUMMARIZE(
    ALL('Table'),[Project],[cycle],[country])
return
COUNTX(
    _table,[cycle])&lt;/LI-CODE&gt;
&lt;P&gt;While calculating the data you provided, I noticed a small discrepancy that I would like to share with you, regarding the USA's de-emphasized data that should be equal to 5, and in adding India's data, the sum is 6&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 11:45:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-unique-values/m-p/3696294#M143746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-13T11:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with unique values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-unique-values/m-p/3696861#M143760</link>
      <description>&lt;P&gt;this is perfect&lt;BR /&gt;&lt;BR /&gt;thank you for your help I appreciate&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 16:10:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-unique-values/m-p/3696861#M143760</guid>
      <dc:creator>haniizz</dc:creator>
      <dc:date>2024-02-13T16:10:50Z</dc:date>
    </item>
  </channel>
</rss>

