<?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 in converting the tableau calculation to Power BI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3006014#M101711</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="489776" data-lia-user-login="asdf1608" class="lia-mention lia-mention-user"&gt;asdf1608&lt;/a&gt;&amp;nbsp;what visual are you using? Make sure to check the aggregation setting for the new column and use the one you need or use&amp;nbsp;&lt;EM&gt;do not summarize&lt;/EM&gt;. See below link:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/service-aggregates" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/create-reports/service-aggregates&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2023 15:05:07 GMT</pubDate>
    <dc:creator>giammariam</dc:creator>
    <dc:date>2023-01-06T15:05:07Z</dc:date>
    <item>
      <title>Help in converting the tableau calculation to Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3005725#M101683</link>
      <description>&lt;P&gt;I need help in converting the tableau calculation to Power BI. I find it&amp;nbsp; a bit difficult in converting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF([As Set] = True and [name Set] = True) then [Column A]&lt;BR /&gt;elseif ([As Set] = True and [name Set] = False) then [column B]&lt;BR /&gt;else "" end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help with this will be very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 12:56:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3005725#M101683</guid>
      <dc:creator>asdf1608</dc:creator>
      <dc:date>2023-01-06T12:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help in converting the tableau calculation to Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3005827#M101695</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="489776" data-lia-user-login="asdf1608" class="lia-mention lia-mention-user"&gt;asdf1608&lt;/a&gt;&amp;nbsp;try the following. Replace the &amp;lt;&amp;gt;s and their contents with the appropriate values. I'm making the assumption that this is for a calculated column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;Column Name&amp;gt; =
IF (
    '&amp;lt;table name&amp;gt;'[As Set] = TRUE,
    IF (
        '&amp;lt;table name&amp;gt;'[name Set] = TRUE,
        '&amp;lt;table name&amp;gt;'[Column A],
        '&amp;lt;table name&amp;gt;'[Column B]
    ),
    ""
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this gets you what you need, please mark this as the solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 13:52:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3005827#M101695</guid>
      <dc:creator>giammariam</dc:creator>
      <dc:date>2023-01-06T13:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help in converting the tableau calculation to Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3005900#M101702</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="124852" data-lia-user-login="giammariam" class="lia-mention lia-mention-user"&gt;giammariam&lt;/a&gt;. I tried the same way you mentioned but I am getting the following error message.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Why is this occuring? How can I solve this&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 14:29:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3005900#M101702</guid>
      <dc:creator>asdf1608</dc:creator>
      <dc:date>2023-01-06T14:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help in converting the tableau calculation to Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3005913#M101703</link>
      <description>&lt;P&gt;How are the [As Set] and [name Set] columns formatted? I assumed they were booleans, but based on the error it sounds like they are formatted as text. If they are formatted as text, try this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;Column Name&amp;gt; =
IF (
    '&amp;lt;table name&amp;gt;'[As Set] = "True",
    IF (
        '&amp;lt;table name&amp;gt;'[name Set] = "True",
        '&amp;lt;table name&amp;gt;'[Column A],
        '&amp;lt;table name&amp;gt;'[Column B]
    ),
    ""
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 14:34:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3005913#M101703</guid>
      <dc:creator>giammariam</dc:creator>
      <dc:date>2023-01-06T14:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help in converting the tableau calculation to Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3005988#M101706</link>
      <description>&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/124852" target="_blank"&gt;@giammariam&lt;/A&gt;&amp;nbsp;I created the column but I get this as count of column. Why is that?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 14:54:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3005988#M101706</guid>
      <dc:creator>asdf1608</dc:creator>
      <dc:date>2023-01-06T14:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help in converting the tableau calculation to Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3006014#M101711</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="489776" data-lia-user-login="asdf1608" class="lia-mention lia-mention-user"&gt;asdf1608&lt;/a&gt;&amp;nbsp;what visual are you using? Make sure to check the aggregation setting for the new column and use the one you need or use&amp;nbsp;&lt;EM&gt;do not summarize&lt;/EM&gt;. See below link:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/service-aggregates" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/create-reports/service-aggregates&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 15:05:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3006014#M101711</guid>
      <dc:creator>giammariam</dc:creator>
      <dc:date>2023-01-06T15:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help in converting the tableau calculation to Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3007927#M101892</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="489776" data-lia-user-login="asdf1608" class="lia-mention lia-mention-user"&gt;asdf1608&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to transfer it to a calculated column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;column=switch(true(),[As Set] = True() &amp;amp;&amp;amp; [name Set] = True(),[Column A],[As Set] = True()&amp;amp;&amp;amp;[name Set] = False(),[column B],"")&lt;/LI-CODE&gt;
&lt;P&gt;If you want to transfer it to a measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;measure=switch(true(),max([As Set]) = True() &amp;amp;&amp;amp; max([name Set]) = True(),max([Column A]),max([As Set])= True()&amp;amp;&amp;amp;max([name Set]) = False(),max([column B]),"")&lt;/LI-CODE&gt;
&lt;P&gt;If you want to transferi it in power query:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= Table.AddColumn(#"Changed Type", "Custom", each if [As Set] = true and [name set]= true then [Column A] else if [As set]=true and [name Set]=false then [column B] else "")&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps, then please consider&amp;nbsp;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 03:14:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3007927#M101892</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-09T03:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help in converting the tableau calculation to Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3008776#M101946</link>
      <description>&lt;P&gt;It worked. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 11:20:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-converting-the-tableau-calculation-to-Power-BI/m-p/3008776#M101946</guid>
      <dc:creator>asdf1608</dc:creator>
      <dc:date>2023-01-09T11:20:49Z</dc:date>
    </item>
  </channel>
</rss>

