<?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 Conditional columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-columns/m-p/2360435#M60307</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement where in I have to show the trend&amp;nbsp;of Revenue and other parameters in graph and table visual.&lt;/P&gt;&lt;P&gt;I have below columns in my dataset&lt;/P&gt;&lt;P&gt;Location, Invoice_Date, CustomerName, Product, Product_description, Revenue, margin, Quantity, Cost, UnitCost, UnitPrice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have date range from 1st Jan 2020 to 31st Dec 2021.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I need to show the trend of revenue and Margin for the year 2020 and 2021 on two different columns in table visual for Revenue (Revenue 2020 and Revenue 2021) and Margin (Margin 2020 and Margin 2021), same needs to be plot in graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, there might be cases where a customer ABC bought and item 123 on multiple dates in both years 2020 and 2021. I need there revenue in different columns.&lt;/P&gt;&lt;P&gt;All the revenues for all dates are in one column, there is no separate date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 06:33:18 GMT</pubDate>
    <dc:creator>apatwal</dc:creator>
    <dc:date>2022-02-25T06:33:18Z</dc:date>
    <item>
      <title>Conditional columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-columns/m-p/2360435#M60307</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement where in I have to show the trend&amp;nbsp;of Revenue and other parameters in graph and table visual.&lt;/P&gt;&lt;P&gt;I have below columns in my dataset&lt;/P&gt;&lt;P&gt;Location, Invoice_Date, CustomerName, Product, Product_description, Revenue, margin, Quantity, Cost, UnitCost, UnitPrice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have date range from 1st Jan 2020 to 31st Dec 2021.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I need to show the trend of revenue and Margin for the year 2020 and 2021 on two different columns in table visual for Revenue (Revenue 2020 and Revenue 2021) and Margin (Margin 2020 and Margin 2021), same needs to be plot in graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, there might be cases where a customer ABC bought and item 123 on multiple dates in both years 2020 and 2021. I need there revenue in different columns.&lt;/P&gt;&lt;P&gt;All the revenues for all dates are in one column, there is no separate date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 06:33:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-columns/m-p/2360435#M60307</guid>
      <dc:creator>apatwal</dc:creator>
      <dc:date>2022-02-25T06:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-columns/m-p/2360529#M60311</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="355449" data-lia-user-login="apatwal" class="lia-mention lia-mention-user"&gt;apatwal&lt;/a&gt; , Put Revenue , Margain [DAte].Year or create a year column and use that viusal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bot able to get the challenge here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this does not help&lt;BR /&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 07:27:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-columns/m-p/2360529#M60311</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-25T07:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-columns/m-p/2360687#M60316</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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the attached PBI sample file&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1eLI2gSvf84ul0RqB_8TX2QZUvgDSMtYh/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1eLI2gSvf84ul0RqB_8TX2QZUvgDSMtYh/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need two different columns that shows Revenue for 2020 and 2021 separately and same for other columns.&lt;/P&gt;&lt;P&gt;I want below structure in PBI&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There should not be any Date filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 08:45:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-columns/m-p/2360687#M60316</guid>
      <dc:creator>apatwal</dc:creator>
      <dc:date>2022-02-25T08:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-columns/m-p/2360712#M60319</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="355449" data-lia-user-login="apatwal" class="lia-mention lia-mention-user"&gt;apatwal&lt;/a&gt; , I added measures for quantity, check those, same way you can create for revenue &lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 09:09:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-columns/m-p/2360712#M60319</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-25T09:09:31Z</dc:date>
    </item>
  </channel>
</rss>

