<?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: Using Variables as filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Variables-as-filters/m-p/1404836#M25902</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="260515" data-lia-user-login="ChristianHE" class="lia-mention lia-mention-user"&gt;ChristianHE&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Test = CALCULATE([Potientiale];TOPN(10,allselected(Kundetabel);[Potientiale],ASC),VALUES(Kundetabel[KUNDENRNAVN]))&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 13:13:05 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-09-30T13:13:05Z</dc:date>
    <item>
      <title>Using Variables as filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Variables-as-filters/m-p/1404742#M25900</link>
      <description>&lt;P&gt;Hi community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a little trouble understanding how to use variables, i have made the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test =&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Rep = VALUES(Kundetabel[Repræsentant])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Kunde = VALUES(Kundetabel[KUNDENRNAVN])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE([Potientiale];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TOPN(10;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATETABLE(all(Kundetabel);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(Kundetabel; Kundetabel[Repræsentant] in Rep)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;;[Potientiale];ASC)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;;Rep; Kunde&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I was hoping my calculatetable would give me a table consisting only of the chosen "&lt;SPAN&gt;Repræsentant", but i suspect it does not. Can someone explain me how it works, alternately see what is wrong with my formula?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 Sep 2020 12:32:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Variables-as-filters/m-p/1404742#M25900</guid>
      <dc:creator>ChristianHE</dc:creator>
      <dc:date>2020-09-30T12:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variables as filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Variables-as-filters/m-p/1404836#M25902</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="260515" data-lia-user-login="ChristianHE" class="lia-mention lia-mention-user"&gt;ChristianHE&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Test = CALCULATE([Potientiale];TOPN(10,allselected(Kundetabel);[Potientiale],ASC),VALUES(Kundetabel[KUNDENRNAVN]))&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 13:13:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Variables-as-filters/m-p/1404836#M25902</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-30T13:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variables as filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Variables-as-filters/m-p/1407261#M26000</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; it works,&amp;nbsp;Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i wanted to add more filters to my [Kundetabel], for example if i only wanted to see customers with a sales above 1.&amp;nbsp; Would that be possible to add in the formula or should it be added in the "Filters"-pane?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 11:49:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Variables-as-filters/m-p/1407261#M26000</guid>
      <dc:creator>ChristianHE</dc:creator>
      <dc:date>2020-10-01T11:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variables as filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Variables-as-filters/m-p/1407436#M26016</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="260515" data-lia-user-login="ChristianHE" class="lia-mention lia-mention-user"&gt;ChristianHE&lt;/a&gt;&amp;nbsp;, better have to measure with filter sales &amp;gt;1, if it line level. If it after grouping then use values&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sumx(Filter(values(Table[Col1]),[sales]&amp;gt;1),[Sales])&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 13:29:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Variables-as-filters/m-p/1407436#M26016</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-10-01T13:29:22Z</dc:date>
    </item>
  </channel>
</rss>

