<?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: DAX to add a column to an existing table, assign category based on other column's data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-add-a-column-to-an-existing-table-assign-category-based/m-p/1219440#M19782</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;! If I go with the 2 measures, I won't be able to display them in a pie chart or a table Graph right? My folks want to show for example : bucket &amp;lt; 5 days late X% and bucket &amp;gt; 5 days late Y% on a pie chart, but I can't see it can be achieved if I were to create 2 measures. Am I understanding it correctly?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jul 2020 21:04:54 GMT</pubDate>
    <dc:creator>p-ha</dc:creator>
    <dc:date>2020-07-13T21:04:54Z</dc:date>
    <item>
      <title>DAX to add a column to an existing table, assign category based on other column's data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-add-a-column-to-an-existing-table-assign-category-based/m-p/1219359#M19777</link>
      <description>&lt;P&gt;Hi, I have the sample table as follow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Invoice #&lt;/TD&gt;&lt;TD&gt;Days Late&lt;/TD&gt;&lt;TD&gt;Days Late Bucket&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A1&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;&amp;lt;=5 days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A2&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;&amp;gt;5 days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;&amp;lt;=5 days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A4&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;&amp;gt;5 days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A5&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;&amp;lt;=5 days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A6&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;&amp;lt;=5 days&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoice # and Days Late are the 2 Data Columns exist on table, I do not have the Days Late Bucket Column and I'd like to add this to the table to assign the category of late bucket based on the condition of "Days Late". I can't do this via Query Editor as the datas are pulled via Analytic Services. Is there a Dax to achieve my purpose?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately I want to count the Invoices that associated to each Days Late Bucket. The analytic services have already created the Measure to calculate the invoice count for each Days Late, but not per Days Late Bucket.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In sum, current state: I can have a count table of:&lt;/P&gt;&lt;P&gt;Days Late - Count&lt;/P&gt;&lt;P&gt;0 - 1&lt;/P&gt;&lt;P&gt;1 - 1&lt;/P&gt;&lt;P&gt;5 - 2&lt;/P&gt;&lt;P&gt;10 - 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to have a future table to show:&lt;/P&gt;&lt;P&gt;Days Late bucket - Count&lt;/P&gt;&lt;P&gt;&amp;lt;= 5 days - 4&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; 5 days - 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!!&lt;/P&gt;&lt;P&gt;P.Ha&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 20:15:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-add-a-column-to-an-existing-table-assign-category-based/m-p/1219359#M19777</guid>
      <dc:creator>p-ha</dc:creator>
      <dc:date>2020-07-13T20:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to add a column to an existing table, assign category based on other column's data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-add-a-column-to-an-existing-table-assign-category-based/m-p/1219366#M19778</link>
      <description>&lt;P&gt;This is in import mode, right?&amp;nbsp; In that case you can add a calculated column with a switch statement, or you can create a group in the Power BI UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 20:26:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-add-a-column-to-an-existing-table-assign-category-based/m-p/1219366#M19778</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-13T20:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to add a column to an existing table, assign category based on other column's data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-add-a-column-to-an-existing-table-assign-category-based/m-p/1219369#M19779</link>
      <description>&lt;P&gt;You can't modify tables if you're connected to an analysis server (not import but connected live).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, a workaround might be to construct two measures, [&amp;lt;= 5 days] and [&amp;gt; 5 days] along these lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE ( [InvoiceCountMeasure], Table1[Days Late] &amp;lt;=5 )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 20:28:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-add-a-column-to-an-existing-table-assign-category-based/m-p/1219369#M19779</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2020-07-13T20:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to add a column to an existing table, assign category based on other column's data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-add-a-column-to-an-existing-table-assign-category-based/m-p/1219429#M19781</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt; ! unfortunately this is a Connect Live datas.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 21:01:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-add-a-column-to-an-existing-table-assign-category-based/m-p/1219429#M19781</guid>
      <dc:creator>p-ha</dc:creator>
      <dc:date>2020-07-13T21:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to add a column to an existing table, assign category based on other column's data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-add-a-column-to-an-existing-table-assign-category-based/m-p/1219440#M19782</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;! If I go with the 2 measures, I won't be able to display them in a pie chart or a table Graph right? My folks want to show for example : bucket &amp;lt; 5 days late X% and bucket &amp;gt; 5 days late Y% on a pie chart, but I can't see it can be achieved if I were to create 2 measures. Am I understanding it correctly?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 21:04:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-add-a-column-to-an-existing-table-assign-category-based/m-p/1219440#M19782</guid>
      <dc:creator>p-ha</dc:creator>
      <dc:date>2020-07-13T21:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to add a column to an existing table, assign category based on other column's data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-add-a-column-to-an-existing-table-assign-category-based/m-p/1219453#M19784</link>
      <description>&lt;P&gt;Yeah, you can't use measures the way you can a table column (e.g. on a graph axis or as pie chart category) but you can at least use them in a matrix visual or a bar chart reasonably.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 21:20:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-add-a-column-to-an-existing-table-assign-category-based/m-p/1219453#M19784</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2020-07-13T21:20:23Z</dc:date>
    </item>
  </channel>
</rss>

