<?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: fitler data in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/fitler-data/m-p/3765499#M50451</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/627849"&gt;@razieh1990&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I updated your sample pbix file(see &lt;EM&gt;&lt;STRONG&gt;the attachment&lt;/STRONG&gt;&lt;/EM&gt;), please check if that is what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MSales = 
VAR _years =
    ALLSELECTED ( 'Years'[Year] )
VAR _year =
    SELECTEDVALUE ( 'Data'[Year] )
VAR _month =
    SELECTEDVALUE ( 'Months'[Month] )
RETURN
    IF (
        _year
            IN _years &amp;amp;&amp;amp; ISINSCOPE ( 'Months'[Month] ),
        SUM ( Data[Sale] ),
        IF (
            NOT ( _year IN _years )
                &amp;amp;&amp;amp; ISINSCOPE ( 'Data'[Year] )
                &amp;amp;&amp;amp; NOT ( ISINSCOPE ( 'Months'[Month] ) ),
            SUM ( 'Data'[Sale] ),
            BLANK ()
        )
    )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;MTarget = 
VAR _years =
    ALLSELECTED ( 'Years'[Year] )
RETURN
    IF (
        SELECTEDVALUE ( 'Data'[Year] )
            IN _years &amp;amp;&amp;amp; ISINSCOPE ( 'Data'[Year] )
                &amp;amp;&amp;amp; NOT ( ISINSCOPE ( 'Months'[Month] ) ),
        SUM ( 'Data'[Target] )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1710489669024.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1060610iD67ABA34637A3B7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1710489669024.png" alt="vyiruanmsft_0-1710489669024.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 08:03:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-03-15T08:03:26Z</dc:date>
    <item>
      <title>fitler data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/fitler-data/m-p/3752013#M50231</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate it if you help me.&lt;/P&gt;&lt;P&gt;I have a dataset including all the sales from 2018.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a matrix in Power BI similar to the below layout.&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the page there is a year selection, each year I choose in the slicer, the data for that year should be displayed by month, and also the target should display the target of the selected year and for the rest of the years, the data should be aggregated and displayed yearly.&lt;/P&gt;&lt;P&gt;and the columns should be sorted ascending. for example, if I choose 2022: the layout should be like the matrix below.&lt;/P&gt;&lt;P&gt;for 2024:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1056885iECF2E8108CFDD801/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.jpeg" alt="image.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;for 2022:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="photo_2024-03-08 14.39.51.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1056886i4849ADD51E3E0CB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="photo_2024-03-08 14.39.51.jpeg" alt="photo_2024-03-08 14.39.51.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 19:41:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/fitler-data/m-p/3752013#M50231</guid>
      <dc:creator>razieh1990</dc:creator>
      <dc:date>2024-03-08T19:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: fitler data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/fitler-data/m-p/3754418#M50283</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/627849"&gt;@razieh1990&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Base on your description, it seems that you want to create a matrix visual. And when you select the year 2020, it will display the target values for the selected year(s) with the &lt;STRONG&gt;months&lt;/STRONG&gt;. For the left years, it will display the sales with the left&amp;nbsp;&lt;STRONG&gt;years&lt;/STRONG&gt;.&amp;nbsp;Could you please&amp;nbsp;&lt;SPAN&gt;provide some&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;raw data&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;in your tables&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;) with&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;format&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;and your&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;with backend logic and special examples? It would be helpful to find out the solution. You can refer the following link to share the required info:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C01%7CClaire.Dong%40microsoft.com%7Cada9149bd91546a8432508dacd31ef9b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638047911607737134%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=EJlYfclgtrjgAEYj9Uo1AauqxaQm3hlQsjJMo4zCY1M%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=04%7C01%7Cv-yiruan%40microsoft.com%7C4f580813734d4a8355b008da16f6e91a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637847547341062885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=YJvujige2YITXKbKED9JieQm5LBdf%2F3IYPM4ggdiijQ%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 08:15:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/fitler-data/m-p/3754418#M50283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-11T08:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: fitler data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/fitler-data/m-p/3755440#M50313</link>
      <description>&lt;P&gt;Hello ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the power bi file I tried to explain my logic and what I want in this power bi file . I appreciate your time&amp;nbsp;&lt;A title="https://we.tl/t-0e0eRtGnjY" href="https://we.tl/t-0e0eRtGnjY" target="_self"&gt;https://we.tl/t-0e0eRtGnjY&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 13:43:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/fitler-data/m-p/3755440#M50313</guid>
      <dc:creator>razieh1990</dc:creator>
      <dc:date>2024-03-11T13:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: fitler data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/fitler-data/m-p/3765499#M50451</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/627849"&gt;@razieh1990&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I updated your sample pbix file(see &lt;EM&gt;&lt;STRONG&gt;the attachment&lt;/STRONG&gt;&lt;/EM&gt;), please check if that is what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MSales = 
VAR _years =
    ALLSELECTED ( 'Years'[Year] )
VAR _year =
    SELECTEDVALUE ( 'Data'[Year] )
VAR _month =
    SELECTEDVALUE ( 'Months'[Month] )
RETURN
    IF (
        _year
            IN _years &amp;amp;&amp;amp; ISINSCOPE ( 'Months'[Month] ),
        SUM ( Data[Sale] ),
        IF (
            NOT ( _year IN _years )
                &amp;amp;&amp;amp; ISINSCOPE ( 'Data'[Year] )
                &amp;amp;&amp;amp; NOT ( ISINSCOPE ( 'Months'[Month] ) ),
            SUM ( 'Data'[Sale] ),
            BLANK ()
        )
    )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;MTarget = 
VAR _years =
    ALLSELECTED ( 'Years'[Year] )
RETURN
    IF (
        SELECTEDVALUE ( 'Data'[Year] )
            IN _years &amp;amp;&amp;amp; ISINSCOPE ( 'Data'[Year] )
                &amp;amp;&amp;amp; NOT ( ISINSCOPE ( 'Months'[Month] ) ),
        SUM ( 'Data'[Target] )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1710489669024.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1060610iD67ABA34637A3B7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1710489669024.png" alt="vyiruanmsft_0-1710489669024.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 08:03:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/fitler-data/m-p/3765499#M50451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-15T08:03:26Z</dc:date>
    </item>
  </channel>
</rss>

