<?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: Tableau Function in Power BI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-Function-in-Power-BI/m-p/898269#M8160</link>
    <description>&lt;P&gt;Thank you Jimmy! this worked and glad to know I was at least on the right track.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate your help with this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Micah&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2020 17:02:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-13T17:02:28Z</dc:date>
    <item>
      <title>Tableau Function in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-Function-in-Power-BI/m-p/896902#M8087</link>
      <description>&lt;P&gt;I've recently been tasked with moving some of my Tableau Dashboards over to Power BI and like a lot of the users on here, I'm struggling getting some stuff involving LOD's to function in DAX. It's pretty frustrating. Here's my current issue that I've been stuck on for way to long;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In Tableau:&lt;/STRONG&gt; I have an LOD function;&amp;nbsp;&lt;FONT&gt;{ FIXED [Facility]: COUNTD(if [Source_System]='Online' then [Id] end)}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;it just counts the number of distinct ids for each facility where the user purchased online. I then take this measure and add it to the filters card and set it to 'where &amp;gt; 10'. This way I can filter out any facility that has less than 10 online orders&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;In PowerBI: I thought I got the calculation right;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Test2 = CALCULATE(DISTINCTCOUNT(Query1[Id]),Query1[Source_System] = "Online",ALLEXCEPT(Query1,Query1[Facility]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I then put the measure in as a filter and set it to &amp;gt; 10 and it doesn't do anything. Does anyone have any ideas?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Some stuff between the 2 programs translates super easily and some makes me want to pound my head against the wall.&lt;/DIV&gt;&lt;DIV&gt;Any help is much appreciated!&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Micah&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 Jan 2020 03:59:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-Function-in-Power-BI/m-p/896902#M8087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-11T03:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Tableau Function in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-Function-in-Power-BI/m-p/897001#M8096</link>
      <description>&lt;P&gt;Hello Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this measure won't work as a filter as it returns always a distinct count meaning a scalar value. And single scalar value can't not filtered. So you have to apply this formula as a new column in your data table and then using this new column as filter.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jimmy&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2020 17:00:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-Function-in-Power-BI/m-p/897001#M8096</guid>
      <dc:creator>Jimmy801</dc:creator>
      <dc:date>2020-01-11T17:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Tableau Function in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-Function-in-Power-BI/m-p/897005#M8098</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt; ,&lt;/P&gt;&lt;P&gt;My recommendation is to&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; punch your head against the wall &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In PowerBI, you can filter on Measures only in a Visual filter. To achieve what you want, you could create a&amp;nbsp;&lt;STRONG&gt;Calculated Table&amp;nbsp;&lt;/STRONG&gt;with a summarize function to get a two column table with Facilities and their distinctcounts of Orders. You can then use that to put a filter on the Page or even Report level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, on a single visual you&amp;nbsp;&lt;STRONG&gt;can&lt;/STRONG&gt; filter on a measure. For example; I have a table visual with all categories of products and I want to filter out all categories where the distinct amount of corresponding products is bigger than 3. My measure is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DistinctCount of Products in subcategory = DISTINCTCOUNT(DimProduct[ProductKey])&lt;/LI-CODE&gt;&lt;P&gt;My table visual looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;By dragging the measure to the filterpane and select "greater then 3", it will filter out all categories with 3 or less products. (in the following table visual, I have removed the measure as a column to demonstrate that it doesn't need to be visible in the Table visual to be filtered on):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that in PowerBI, a Slicer is a filter like any other filter. If you report contains a slicer on Facility you could add the measure to the Slicer Visual filter to not show any options where count&amp;lt;10. If you need the page or report filter, you will need to create a calculated table with distinct facilities and their corresponding IDs, create 1*many relationships from the calculated table to your fact/dim table and use that as a filter in the filter pane. In my example, the code would be something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SubCategoriesWithDistinctCountsOfProducts = SUMMARIZECOLUMNS(DimProduct[ProductSubcategoryKey], "CountOfProducts", DISTINCTCOUNT(DimProduct[ProductKey])) &lt;/LI-CODE&gt;&lt;P&gt;Let me know if this helps you out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Djerro123&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;If this answered your question, please &lt;STRONG&gt;mark it as the Solution&lt;/STRONG&gt;. This also helps others to find what they are looking for.&lt;/P&gt;&lt;P&gt;Keep those &lt;STRONG&gt;thumbs up&lt;/STRONG&gt; coming! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2020 17:27:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-Function-in-Power-BI/m-p/897005#M8098</guid>
      <dc:creator>JarroVGIT</dc:creator>
      <dc:date>2020-01-11T17:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tableau Function in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-Function-in-Power-BI/m-p/898269#M8160</link>
      <description>&lt;P&gt;Thank you Jimmy! this worked and glad to know I was at least on the right track.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate your help with this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Micah&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 17:02:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-Function-in-Power-BI/m-p/898269#M8160</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-13T17:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Tableau Function in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-Function-in-Power-BI/m-p/898275#M8161</link>
      <description>&lt;P&gt;Thank you for the detailed response. I'm going to give this a try this evening and see if it produces the desired affect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Micah&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 17:04:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-Function-in-Power-BI/m-p/898275#M8161</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-13T17:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Tableau Function in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-Function-in-Power-BI/m-p/898402#M8165</link>
      <description>&lt;P&gt;No Problem, just don't forget to mark it as a solution if it does fit your needs (more than 1 response can be your solution) for others with similar questions to find the answer quickly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Djerro123&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;If this answered your question, please &lt;STRONG&gt;mark it as the Solution&lt;/STRONG&gt;. This also helps others to find what they are looking for.&lt;/P&gt;&lt;P&gt;Keep those &lt;STRONG&gt;thumbs up&lt;/STRONG&gt; coming! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 18:42:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-Function-in-Power-BI/m-p/898402#M8165</guid>
      <dc:creator>JarroVGIT</dc:creator>
      <dc:date>2020-01-13T18:42:39Z</dc:date>
    </item>
  </channel>
</rss>

