<?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: Range counting number of invoice per user in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385480#M127568</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;my professional compture does not allow to share link outside the org.&amp;nbsp;&lt;BR /&gt;Here is another file.&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;A title="https://1drv.ms/u/s!apg1djit2ykruzyrtdumbnmacipo5g" href="https://1drv.ms/u/s!ApG1DjiT2yKRuZYrTDUmBNmaCIpO5g" target="_blank" rel="noreferrer noopener"&gt;https://1drv.ms/u/s!ApG1DjiT2yKRuZYrTDUmBNmaCIpO5g&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;there is no excel, only manual entry to test the logic.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2023 14:08:05 GMT</pubDate>
    <dc:creator>Martin0011</dc:creator>
    <dc:date>2023-08-17T14:08:05Z</dc:date>
    <item>
      <title>Range counting number of invoice per user</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3384825#M127531</link>
      <description>&lt;P&gt;Dear community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with a list of Invoice and another one with a list of User where the invoice is assigned. An invoice can be assigned to multiple users.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What I'm trying to acheive is to have a simple table visual where we can have a range and for each of the range catagory, we would have 2 values : Number of User that have the number of invoice pending to them.&amp;nbsp;&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;&lt;P&gt;&lt;STRONG&gt;Range&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;# User&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;# Of invoice&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1-3&lt;/TD&gt;&lt;TD&gt;789&lt;/TD&gt;&lt;TD&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;3-10&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;TD&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;gt;11&lt;/TD&gt;&lt;TD&gt;46&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have 2 type of invoices : Awaiting approval &amp;amp; Pending action.&amp;nbsp;&lt;BR /&gt;I need that the number of user and invoice allocated to a range be dynamic based on the filter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I create a measure to acheive this, the result is always &amp;gt; 11 because it does not take into account the user&lt;/P&gt;&lt;P&gt;When I create a new colmun, the filter will change the number of invoice but the user is always assigned to the same range.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can we acheive this ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 09:05:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3384825#M127531</guid>
      <dc:creator>Martin0011</dc:creator>
      <dc:date>2023-08-17T09:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Range counting number of invoice per user</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3384988#M127542</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372134" data-lia-user-login="Martin0011" class="lia-mention lia-mention-user"&gt;Martin0011&lt;/a&gt;&amp;nbsp;it is very hard, at least for me, to understand request / issue without data. please share sample data and expected output.&lt;/P&gt;&lt;P&gt;Based on your text only, if you already have some measure/s additional work should be (include table or some part of table "&lt;SPAN&gt;because it does not take into account the user")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"An invoice can be assigned to multiple users. "&amp;nbsp; I undestand this part: your results could be seen in user / invoice perspective, so model is key.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 10:20:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3384988#M127542</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-08-17T10:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Range counting number of invoice per user</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385029#M127545</link>
      <description>&lt;P&gt;Ok, I'll try to be more pricised.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have tables&lt;/P&gt;&lt;P&gt;- Invoices (fields :&amp;nbsp;Invoice &amp;amp; Status)&lt;/P&gt;&lt;P&gt;- User_Inv (fields : User &amp;amp; Invoice)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Measure :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Inv = COUNTROWS(Invoices)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Group = SWITCH(
        true(),
            [# Inv]=0,"No Invoice",
            [# Inv] &amp;lt;4,"1. 1-3",
            [# Inv]&amp;lt;11,"2. 4-10",
            [# Inv]&amp;lt;51,"3. 11-50",
            "4. &amp;gt;50")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end goal is to have a simple table visual with :&amp;nbsp;&lt;BR /&gt;Group - # of User - # of Invoice&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Range&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;# User&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;# Of invoice&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1-3&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;4-10&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11-50&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;gt;50&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I alsways need to know the number of user that would be assigned to a group. In the above table, i know that I have 1 user that have&amp;nbsp;&lt;/P&gt;&lt;P&gt;I works when I add the user inside the table but if I remove, the measure will count the number of invoice that will not take the user into account.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See that User B has 14 invoices and User 1 only 10, when I add the user in the visual, it provide the right group based on the invoice volume.&amp;nbsp;&lt;BR /&gt;Now, on the right table, I remove the user and obvisouly, the measure #Invoice is the total number of incoice and then, the group is calculated.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This should also work when appliying filters - If I select Awaiting Approval, then, the total volume of invoice will decrease, the user will be allocated to another group then.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 10:41:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385029#M127545</guid>
      <dc:creator>Martin0011</dc:creator>
      <dc:date>2023-08-17T10:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Range counting number of invoice per user</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385205#M127555</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372134" data-lia-user-login="Martin0011" class="lia-mention lia-mention-user"&gt;Martin0011&lt;/a&gt;&amp;nbsp;what about relationships in model? in which table you have possbile double values for invoices / users, both or only one of tables?&lt;/P&gt;&lt;P&gt;The best would be to share sample data and expected results. Most probably your measure do not include "sum as expected", but more details is needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 12:03:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385205#M127555</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-08-17T12:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Range counting number of invoice per user</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385362#M127561</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relationship is between the 2 table using the field Invoice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoice &amp;amp; Status are Unique value&lt;/P&gt;&lt;P&gt;Invoice &amp;amp; User can have multiple value as 1 invoice can be assigned to N user.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm trying to share a PBIX file and ZIP but it does not allow me to upload this here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 13:17:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385362#M127561</guid>
      <dc:creator>Martin0011</dc:creator>
      <dc:date>2023-08-17T13:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Range counting number of invoice per user</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385397#M127563</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372134" data-lia-user-login="Martin0011" class="lia-mention lia-mention-user"&gt;Martin0011&lt;/a&gt;&amp;nbsp;if your have office 365 create link and share it, or put link from some links like dropbox.. (do not forget underlying excel file or ...)&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 13:34:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385397#M127563</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-08-17T13:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Range counting number of invoice per user</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385480#M127568</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;my professional compture does not allow to share link outside the org.&amp;nbsp;&lt;BR /&gt;Here is another file.&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;A title="https://1drv.ms/u/s!apg1djit2ykruzyrtdumbnmacipo5g" href="https://1drv.ms/u/s!ApG1DjiT2yKRuZYrTDUmBNmaCIpO5g" target="_blank" rel="noreferrer noopener"&gt;https://1drv.ms/u/s!ApG1DjiT2yKRuZYrTDUmBNmaCIpO5g&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;there is no excel, only manual entry to test the logic.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 14:08:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385480#M127568</guid>
      <dc:creator>Martin0011</dc:creator>
      <dc:date>2023-08-17T14:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Range counting number of invoice per user</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385488#M127569</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372134" data-lia-user-login="Martin0011" class="lia-mention lia-mention-user"&gt;Martin0011&lt;/a&gt;&amp;nbsp;ok, I will see file and see what I can do.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 14:13:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385488#M127569</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-08-17T14:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Range counting number of invoice per user</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385524#M127571</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372134" data-lia-user-login="Martin0011" class="lia-mention lia-mention-user"&gt;Martin0011&lt;/a&gt;&amp;nbsp;usually, users are assigned to invoices, meaning all invoices are allocated to users and other way around, this should be best practice and common sense.&lt;/P&gt;&lt;P&gt;In your case, according to picture it is not best practice? Should it be that way as shown on picture below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 14:24:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385524#M127571</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-08-17T14:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Range counting number of invoice per user</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385537#M127572</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 invoice can be assigned to multiple users - isn't it what is expressed in the relationship ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 14:34:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385537#M127572</guid>
      <dc:creator>Martin0011</dc:creator>
      <dc:date>2023-08-17T14:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Range counting number of invoice per user</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385703#M127581</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372134" data-lia-user-login="Martin0011" class="lia-mention lia-mention-user"&gt;Martin0011&lt;/a&gt;&amp;nbsp;I just noticed it. Based on file what is expected result per user, status... Your file do not have data as described in your first post.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 15:49:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3385703#M127581</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-08-17T15:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Range counting number of invoice per user</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3392280#M127907</link>
      <description>&lt;P&gt;Anyone has any idea how to achieve this ?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 10:54:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Range-counting-number-of-invoice-per-user/m-p/3392280#M127907</guid>
      <dc:creator>Martin0011</dc:creator>
      <dc:date>2023-08-22T10:54:13Z</dc:date>
    </item>
  </channel>
</rss>

