<?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 Bar chart 4 years in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-4-years/m-p/3406630#M128718</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;i have a barchart as per below, when selecting the months from the date slicer, i want the barchart to display the selected months for each year in the barchart. This will allow me to do comparison for same month but all years in the dataset.&lt;BR /&gt;for example when selecting the months of Jan/Feb/Mar, the barchart should display years 2021/2022/2023/2024 but the values will be that of Jan/Feb/Mar.&lt;BR /&gt;&lt;BR /&gt;Can you please help ?&lt;BR /&gt;&lt;BR /&gt;thanking you&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 13:03:38 GMT</pubDate>
    <dc:creator>Mauritius360</dc:creator>
    <dc:date>2023-08-30T13:03:38Z</dc:date>
    <item>
      <title>Bar chart 4 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-4-years/m-p/3406630#M128718</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;i have a barchart as per below, when selecting the months from the date slicer, i want the barchart to display the selected months for each year in the barchart. This will allow me to do comparison for same month but all years in the dataset.&lt;BR /&gt;for example when selecting the months of Jan/Feb/Mar, the barchart should display years 2021/2022/2023/2024 but the values will be that of Jan/Feb/Mar.&lt;BR /&gt;&lt;BR /&gt;Can you please help ?&lt;BR /&gt;&lt;BR /&gt;thanking you&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 13:03:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-4-years/m-p/3406630#M128718</guid>
      <dc:creator>Mauritius360</dc:creator>
      <dc:date>2023-08-30T13:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart 4 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-4-years/m-p/3410047#M128883</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="610452" data-lia-user-login="Mauritius360" class="lia-mention lia-mention-user"&gt;Mauritius360&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the field you placed in your slicer is from the same table as the field placed in Visual, you can try the following:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Place [Date] in X-axis as Date Hierarchy, and each year's data will display only the values of these Months as the slicer is selected&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the fields you place in your slicer and the fields placed in Visual are not from the same table and do not have any join relationships, you can try the following:&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _select=SELECTCOLUMNS('Slicer_Table',"Month_number",[Month])
return
IF(
    FORMAT(MAX('Table'[Date]),"mmm")in _select,1,0)&lt;/LI-CODE&gt;
&lt;P&gt;2. Place [Flag]in Filters, set is=1, apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 02:41:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-4-years/m-p/3410047#M128883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-01T02:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart 4 years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-4-years/m-p/3444581#M130969</link>
      <description>&lt;P&gt;I hope this message finds you well. I've noticed that this solution remain unresolved. If any of you have managed to find a resolution to the issue, I kindly request that you share your solution for the benefit of the entire community. Alternatively, if you're still facing challenges, please do let us know as well.&lt;/P&gt;
&lt;P&gt;Your insights and updates will greatly assist others who might be encountering the same challenge.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 08:02:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-chart-4-years/m-p/3444581#M130969</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2023-09-24T08:02:27Z</dc:date>
    </item>
  </channel>
</rss>

