<?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: Assign Count Value to a specific row in a Matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-Count-Value-to-a-specific-row-in-a-Matrix/m-p/2730263#M83588</link>
    <description>&lt;P&gt;Please provide sanitized sample data that fully covers your issue. I can only help you with meaningful sample data.&lt;BR /&gt;Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive. &lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 27 Aug 2022 13:29:18 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2022-08-27T13:29:18Z</dc:date>
    <item>
      <title>Assign Count Value to a specific row in a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-Count-Value-to-a-specific-row-in-a-Matrix/m-p/2729065#M83525</link>
      <description>&lt;PRE&gt;&lt;SPAN class=""&gt;Dear Community,
I need your help.&lt;BR /&gt;&lt;BR /&gt;I have a table in which I calculate the range of each article. Lets assume that I have two different itmes with to different ranges.&lt;BR /&gt;&lt;BR /&gt;Item1 Range of 3 and Item2 with a Range of 1.&lt;BR /&gt;&lt;BR /&gt;Now I have a second table. This table has different limits. Does are for example:&lt;BR /&gt;0&amp;gt;2&amp;lt;=&lt;BR /&gt;and&lt;BR /&gt;2&amp;gt;&amp;lt;=5.&lt;BR /&gt;&lt;BR /&gt;What I want to do know is,I wanto to make a distinctcount on the first table, namely on the Item column.And then,&lt;BR /&gt;bases on the range specified in table1, I would like to assign the count to the correct limit in table2.&lt;BR /&gt;&lt;BR /&gt;Here is an example from my current Power BI with my goal.&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Aug 2022 14:15:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-Count-Value-to-a-specific-row-in-a-Matrix/m-p/2729065#M83525</guid>
      <dc:creator>Danny090890</dc:creator>
      <dc:date>2022-08-26T14:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Count Value to a specific row in a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-Count-Value-to-a-specific-row-in-a-Matrix/m-p/2730263#M83588</link>
      <description>&lt;P&gt;Please provide sanitized sample data that fully covers your issue. I can only help you with meaningful sample data.&lt;BR /&gt;Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive. &lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2022 13:29:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-Count-Value-to-a-specific-row-in-a-Matrix/m-p/2730263#M83588</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-08-27T13:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Count Value to a specific row in a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-Count-Value-to-a-specific-row-in-a-Matrix/m-p/2731819#M83673</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the answer I will paste my table and solution bellow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like I said. I want to make a count on Itmes. And on the dependence of the range I want to asign the&amp;nbsp;&lt;/P&gt;&lt;P&gt;DISTINCTCOUNT of the items to the right border.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Table 1&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Border&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Lower&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Upper&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&amp;gt;&amp;lt;=2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&amp;gt;&amp;lt;=2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&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;=8&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&amp;gt;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution Filter on Location P305:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Border&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Count of Itmes&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&amp;gt;&amp;lt;=2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&amp;gt;&amp;lt;=5&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&amp;gt;&amp;lt;=8&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&amp;gt;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 29 Aug 2022 07:48:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-Count-Value-to-a-specific-row-in-a-Matrix/m-p/2731819#M83673</guid>
      <dc:creator>Danny090890</dc:creator>
      <dc:date>2022-08-29T07:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Count Value to a specific row in a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-Count-Value-to-a-specific-row-in-a-Matrix/m-p/2740153#M84177</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="428064" data-lia-user-login="Danny090890" class="lia-mention lia-mention-user"&gt;Danny090890&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try this measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _selectvalue = SELECTEDVALUE('Table 1'[Border])
VAR _result_0_2 = CALCULATE(COUNT('Table 2'[Range]),FILTER('Table 2','Table 2'[Range]&amp;gt;=1&amp;amp;&amp;amp;'Table 2'[Range]&amp;lt;3)) + 0
VAR _result_2_5 = CALCULATE(COUNT('Table 2'[Range]),FILTER('Table 2','Table 2'[Range]&amp;gt;=3&amp;amp;&amp;amp;'Table 2'[Range]&amp;lt;6)) + 0
VAR _result_5_8 = CALCULATE(COUNT('Table 2'[Range]),FILTER('Table 2','Table 2'[Range]&amp;gt;=6&amp;amp;&amp;amp;'Table 2'[Range]&amp;lt;9)) + 0
VAR _result_8 = CALCULATE(COUNT('Table 2'[Range]),FILTER('Table 2','Table 2'[Range]&amp;gt;=9&amp;amp;&amp;amp;'Table 2'[Range]&amp;lt;999)) + 0
VAR _result = 
SWITCH(
    _selectvalue,
    "0&amp;gt;&amp;lt;=2",_result_0_2,
    "2&amp;gt;&amp;lt;=5",_result_2_5,
    "5&amp;gt;&amp;lt;=8",_result_5_8,
    "8&amp;gt;",_result_8
)
RETURN
_result&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;BR /&gt;Gao&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to get your questions answered quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;--&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to provide sample data&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 08:37:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-Count-Value-to-a-specific-row-in-a-Matrix/m-p/2740153#M84177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-01T08:37:50Z</dc:date>
    </item>
  </channel>
</rss>

