<?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 Get a random line from a table that is filtered by a slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-random-line-from-a-table-that-is-filtered-by-a-slicer/m-p/3575155#M137834</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to get a random line out a table. The table should be filtered by a slicer before selecting the line.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;the starting table is:&lt;/P&gt;&lt;P&gt;ID-no&amp;nbsp;&amp;nbsp; name&amp;nbsp;&amp;nbsp; colour&lt;/P&gt;&lt;P&gt;103&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shirts&amp;nbsp;&amp;nbsp; red&lt;/P&gt;&lt;P&gt;204&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shirts&amp;nbsp;&amp;nbsp; blue&lt;/P&gt;&lt;P&gt;101&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; socks&amp;nbsp;&amp;nbsp; red&lt;/P&gt;&lt;P&gt;348&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jacket&amp;nbsp; blue&lt;/P&gt;&lt;P&gt;421&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jacket&amp;nbsp; green&lt;/P&gt;&lt;P&gt;333 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jacket&amp;nbsp; red&lt;/P&gt;&lt;P&gt;There is a slicer filtering the colours. I want to use this slicer (at run time) and generate a random selection of e.g. a "red" article.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have had the idea to create a table with all the filtered entries. But I failed to apply the slicer argument to CALCULTETABLE. And the next step should be to get a random line (or ID-no) out of the created table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But may be there is a better way the create the (random) line or ID-no in a different way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 21:05:40 GMT</pubDate>
    <dc:creator>PeRoma</dc:creator>
    <dc:date>2023-12-08T21:05:40Z</dc:date>
    <item>
      <title>Get a random line from a table that is filtered by a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-random-line-from-a-table-that-is-filtered-by-a-slicer/m-p/3575155#M137834</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to get a random line out a table. The table should be filtered by a slicer before selecting the line.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;the starting table is:&lt;/P&gt;&lt;P&gt;ID-no&amp;nbsp;&amp;nbsp; name&amp;nbsp;&amp;nbsp; colour&lt;/P&gt;&lt;P&gt;103&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shirts&amp;nbsp;&amp;nbsp; red&lt;/P&gt;&lt;P&gt;204&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shirts&amp;nbsp;&amp;nbsp; blue&lt;/P&gt;&lt;P&gt;101&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; socks&amp;nbsp;&amp;nbsp; red&lt;/P&gt;&lt;P&gt;348&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jacket&amp;nbsp; blue&lt;/P&gt;&lt;P&gt;421&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jacket&amp;nbsp; green&lt;/P&gt;&lt;P&gt;333 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jacket&amp;nbsp; red&lt;/P&gt;&lt;P&gt;There is a slicer filtering the colours. I want to use this slicer (at run time) and generate a random selection of e.g. a "red" article.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have had the idea to create a table with all the filtered entries. But I failed to apply the slicer argument to CALCULTETABLE. And the next step should be to get a random line (or ID-no) out of the created table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But may be there is a better way the create the (random) line or ID-no in a different way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 21:05:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-random-line-from-a-table-that-is-filtered-by-a-slicer/m-p/3575155#M137834</guid>
      <dc:creator>PeRoma</dc:creator>
      <dc:date>2023-12-08T21:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get a random line from a table that is filtered by a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-random-line-from-a-table-that-is-filtered-by-a-slicer/m-p/3575457#M137847</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="412763" data-lia-user-login="PeRoma" class="lia-mention lia-mention-user"&gt;PeRoma&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;A random line can be picked one you select a colour from the slicer, the issue is the number will be static as long as you refresh your model. I think your expectation is not that.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 07:55:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-random-line-from-a-table-that-is-filtered-by-a-slicer/m-p/3575457#M137847</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2023-12-09T07:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get a random line from a table that is filtered by a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-random-line-from-a-table-that-is-filtered-by-a-slicer/m-p/3575587#M137853</link>
      <description>&lt;P&gt;&amp;nbsp;Hi Fowmy,&lt;/P&gt;&lt;P&gt;Thank you for your reply but you are right, this is not my intension. I want a DAX command pick a random line and show it in a visual. Sorry for not being correct enough.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 14:06:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-random-line-from-a-table-that-is-filtered-by-a-slicer/m-p/3575587#M137853</guid>
      <dc:creator>PeRoma</dc:creator>
      <dc:date>2023-12-09T14:06:55Z</dc:date>
    </item>
  </channel>
</rss>

