<?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: Help Converting a Tableau FIXED Calc to PowerBI DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Converting-a-Tableau-FIXED-Calc-to-PowerBI-DAX/m-p/2193179#M51305</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; did you try the above?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Nov 2021 19:43:46 GMT</pubDate>
    <dc:creator>smpa01</dc:creator>
    <dc:date>2021-11-16T19:43:46Z</dc:date>
    <item>
      <title>Help Converting a Tableau FIXED Calc to PowerBI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Converting-a-Tableau-FIXED-Calc-to-PowerBI-DAX/m-p/2187792#M51071</link>
      <description>&lt;P&gt;Hello Community - We are trying to switch a report from Tableau to PowerBI and trying to convert a calculation that uses a FIXED level of detail calc to a DAX calculation but not able to get it to work right. Here's how it works in Tableau. It's a calculation to create 'share'.&lt;/P&gt;&lt;P&gt;Tableau Calcs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Dol Share =&amp;nbsp;Sum([Dol])/Sum({Fixed [Nielsen Market], [Period Description Short]: Sum([Dol])})*100&lt;UL&gt;&lt;LI&gt;Where 'dol' is a Continuous Measure&lt;/LI&gt;&lt;LI&gt;Where 'Nielsen Market' is a Discrete Dimension/Attribute in String&lt;/LI&gt;&lt;LI&gt;Where 'Period Description Short' is a Discrete Dimension/Attribute in String&lt;/LI&gt;&lt;LI&gt;Where 'Brand Category' is a Discrete Dimension/Attribute in String&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Expected Output Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the calculation in a Tableau view (Dol being the native continuous measure, displayed as a SUM). The Fixed Calculation being the denominator of the calculation from the above calculation. And the third column being the result. This first image shows what it looks like with no filters applied:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Dol&lt;/TD&gt;&lt;TD&gt;Fixed Calculation Dol&lt;/TD&gt;&lt;TD&gt;Dol Share&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IL - STATE&lt;/TD&gt;&lt;TD&gt;147,767,548&lt;/TD&gt;&lt;TD&gt;147,767,548&lt;/TD&gt;&lt;TD&gt;100.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;Then let's say we apply a Filter for brand, the Fixed calculation properly stays put on the total market value, but Dol filters down, thus providing us with the correct 'Share' calculation:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Dol&lt;/TD&gt;&lt;TD&gt;Fixed Calculation Dol&lt;/TD&gt;&lt;TD&gt;Dol Share&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IL - STATE&lt;/TD&gt;&lt;TD&gt;3,580,161&lt;/TD&gt;&lt;TD&gt;147,767,548&lt;/TD&gt;&lt;TD&gt;2.4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;How could we translate this to DAX? We tried a SUMX but it does not hold denominator of the calculation stable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 17:40:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Converting-a-Tableau-FIXED-Calc-to-PowerBI-DAX/m-p/2187792#M51071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-12T17:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help Converting a Tableau FIXED Calc to PowerBI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Converting-a-Tableau-FIXED-Calc-to-PowerBI-DAX/m-p/2187858#M51076</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; can you provide sample data and expected output?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 18:38:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Converting-a-Tableau-FIXED-Calc-to-PowerBI-DAX/m-p/2187858#M51076</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2021-11-12T18:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help Converting a Tableau FIXED Calc to PowerBI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Converting-a-Tableau-FIXED-Calc-to-PowerBI-DAX/m-p/2187942#M51083</link>
      <description>&lt;P&gt;Hi, sure! Here's a sample file. Using only the 'Dol' column to recreate the calculation in DAX. I would expect that we could get to the point where we can achieve a 'dol share' output looks like the pivot table in the attached file. We should be able to Filter to a single Market and then by a Category and see the correct Dol Share because the calculation is "fixed" at the Market level. Let me know if this is not a helpful sample file. First post the powerbi community - super new to DAX.&amp;nbsp;&lt;A href="https://bgsw1-my.sharepoint.com/personal/tracie_wood_beamsuntory_com/_layouts/15/guestaccess.aspx?docid=07faf43074a7c4e04b0e39ecc1eeced15&amp;amp;authkey=Ad8Q2ldJftAQcCkRqHd4cr8&amp;amp;expiration=2022-01-11T20%3A56%3A55.000Z&amp;amp;e=9avmcA" target="_blank" rel="noopener"&gt;Sample Data&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 20:58:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Converting-a-Tableau-FIXED-Calc-to-PowerBI-DAX/m-p/2187942#M51083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-12T20:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help Converting a Tableau FIXED Calc to PowerBI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Converting-a-Tableau-FIXED-Calc-to-PowerBI-DAX/m-p/2190715#M51202</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; sorry for late reply. Please find attached the pbix&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The end goal can be achieved in two ways in DAX&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_sumOfDol = 
SUM ( 'Table'[Dol] )

_%ofDolShare1 = 
DIVIDE (
    [_sumOfDol],
    CALCULATE (
        SUM ( 'Table'[Dol] ),
        ALLEXCEPT ( 'Table', 'Table'[Nielsen Market] )
    )
)

_%ofDolShare2 = 
VAR _1 =
    CALCULATE ( SUM ( 'Table'[Dol] ), ALLSELECTED ( 'Table'[Nielsen Market] ) )
VAR _2 =
    CALCULATE (
        SUM ( 'Table'[Dol] ),
        ALLSELECTED ( 'Table'[Nielsen Market] ),
        ALL ( 'Table'[Category] )
    )
RETURN
    DIVIDE ( _1, _2 )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can either select 1 market or multiple markets, the measure will perform accordingly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 16:33:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Converting-a-Tableau-FIXED-Calc-to-PowerBI-DAX/m-p/2190715#M51202</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2021-11-15T16:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help Converting a Tableau FIXED Calc to PowerBI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Converting-a-Tableau-FIXED-Calc-to-PowerBI-DAX/m-p/2193179#M51305</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; did you try the above?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 19:43:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Converting-a-Tableau-FIXED-Calc-to-PowerBI-DAX/m-p/2193179#M51305</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2021-11-16T19:43:46Z</dc:date>
    </item>
  </channel>
</rss>

