<?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: Counting how many people used an application? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-how-many-people-used-an-application/m-p/923110#M9178</link>
    <description>Whenever you are declaring variable in dax you have to type keyword "return" and after return whatever is there is the output of your statement.&lt;BR /&gt;&lt;BR /&gt;Measure=&lt;BR /&gt;Var a=Calculate(distinctcount(table[user]),allexcept(table,table[application])&lt;BR /&gt;&lt;BR /&gt;Return&lt;BR /&gt;If(a&amp;lt;=5,a,blank())&lt;BR /&gt;&lt;BR /&gt;Incase the other measure is working incase then just change var a= that summerize one statement.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Pravin&lt;BR /&gt;&lt;BR /&gt;If it resolves your problem mark it as a solution and give Kudos.</description>
    <pubDate>Wed, 05 Feb 2020 18:48:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-05T18:48:54Z</dc:date>
    <item>
      <title>Counting how many people used an application?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-how-many-people-used-an-application/m-p/921663#M9119</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of user logins and the applications they log into. I want to write a DAX that calculates the applicaitons that have had less than 5 User logins, 5 to 10 and 10 plus. From a use case, it's essentially telling me Applications that are rearely used. The data set looks like such.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DAX sould show that&lt;/P&gt;&lt;P&gt;Office has only 1 user, even through Chad logged in 3 times&lt;/P&gt;&lt;P&gt;Adobe has 3 users&lt;/P&gt;&lt;P&gt;Citris has 1 user&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my practive i thought it would be something like&lt;/P&gt;&lt;P&gt;Measure =&amp;nbsp; calculate( distinctcount [table name], Application name)&amp;nbsp; &amp;nbsp; ----- essentially counitng unique names for each application.. But i am overlooking something?&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;APPLICATION&lt;/TD&gt;&lt;TD&gt;USER&lt;/TD&gt;&lt;TD&gt;DATE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;OFFICE&lt;/TD&gt;&lt;TD&gt;CHAD&lt;/TD&gt;&lt;TD&gt;JAN 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ADOBE&lt;/TD&gt;&lt;TD&gt;CHAD&lt;/TD&gt;&lt;TD&gt;JAN3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;OFFICE&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;CHAD&lt;/TD&gt;&lt;TD&gt;FEB 9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;OFFICE&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;CHAD&lt;/TD&gt;&lt;TD&gt;MAR 8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ADOBE&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;MAT&lt;/TD&gt;&lt;TD&gt;MAR 9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ADOBE&lt;/TD&gt;&lt;TD&gt;MAT&lt;/TD&gt;&lt;TD&gt;MAR 15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ADOBE&lt;/TD&gt;&lt;TD&gt;JAMES&lt;/TD&gt;&lt;TD&gt;MAR 6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CITRIX&lt;/TD&gt;&lt;TD&gt;JAMES&lt;/TD&gt;&lt;TD&gt;MAR 6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 21:02:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-how-many-people-used-an-application/m-p/921663#M9119</guid>
      <dc:creator>sharpedogs</dc:creator>
      <dc:date>2020-02-04T21:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Counting how many people used an application?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-how-many-people-used-an-application/m-p/921756#M9120</link>
      <description>&lt;P&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
VAR v_table = SUMMARIZE( Table2, Table2[APPLICATION], Table2[USER])
RETURN
COUNTX( v_table, [APPLICATION])&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Feb 2020 23:15:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-how-many-people-used-an-application/m-p/921756#M9120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-04T23:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Counting how many people used an application?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-how-many-people-used-an-application/m-p/921845#M9125</link>
      <description>Try this&lt;BR /&gt;&lt;BR /&gt;Calculate(distinctcount(table[user]),allexcept(table,table[application])&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Pravin&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If it resolves your problem mark it as a solution and give Kudos.</description>
      <pubDate>Wed, 05 Feb 2020 01:44:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-how-many-people-used-an-application/m-p/921845#M9125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-05T01:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Counting how many people used an application?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-how-many-people-used-an-application/m-p/922900#M9169</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This essentially ansewered the question i posted, but my mistake for not being clear. I've got this far which is essentially showing the unique users per applicaiton. The second part of the ask (i forgot to post), is now I wnat to have this DAX only show applications that have 5 of fewers users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i thought i could just add ( &amp;lt;= 5) at the end of DAX and it woudl only show me apps with 5 or fewer unique users. But it's a True/False statement. how do i turn that back into a number?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 16:28:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-how-many-people-used-an-application/m-p/922900#M9169</guid>
      <dc:creator>sharpedogs</dc:creator>
      <dc:date>2020-02-05T16:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Counting how many people used an application?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-how-many-people-used-an-application/m-p/922912#M9170</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm rather new so some of the syntex throws me off. From DAX bar when i go to put VAR... i get 2 options VAR.P and VAR.S, i'm not sure which you are referring to? As well what does "RETURN" mean? I'm new to DAX so this is a leanring experience for me as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Measure = 
VAR v_table = SUMMARIZE( Table2, Table2[APPLICATION], Table2[USER])
RETURN
COUNTX( v_table, [APPLICATION])&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 16:31:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-how-many-people-used-an-application/m-p/922912#M9170</guid>
      <dc:creator>sharpedogs</dc:creator>
      <dc:date>2020-02-05T16:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Counting how many people used an application?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-how-many-people-used-an-application/m-p/923110#M9178</link>
      <description>Whenever you are declaring variable in dax you have to type keyword "return" and after return whatever is there is the output of your statement.&lt;BR /&gt;&lt;BR /&gt;Measure=&lt;BR /&gt;Var a=Calculate(distinctcount(table[user]),allexcept(table,table[application])&lt;BR /&gt;&lt;BR /&gt;Return&lt;BR /&gt;If(a&amp;lt;=5,a,blank())&lt;BR /&gt;&lt;BR /&gt;Incase the other measure is working incase then just change var a= that summerize one statement.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Pravin&lt;BR /&gt;&lt;BR /&gt;If it resolves your problem mark it as a solution and give Kudos.</description>
      <pubDate>Wed, 05 Feb 2020 18:48:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-how-many-people-used-an-application/m-p/923110#M9178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-05T18:48:54Z</dc:date>
    </item>
  </channel>
</rss>

