<?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 with DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4143851#M164691</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="787215" data-lia-user-login="rod_puente" class="lia-mention lia-mention-user"&gt;rod_puente&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The purpose of using two slicers is unclear to me, but you can follow these steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. create &lt;STRONG&gt;three&lt;/STRONG&gt;&amp;nbsp;tables for matrix and those two slicer ( you can write sth like summarize(your_table, year) to make it dynamic or just write 2023 and 2024 ) . keep in mind these three tables should not have any relationship with other tables.&lt;/P&gt;&lt;P&gt;2. use one of these tables (table1) in slicer1, table2 in slicer2 and table3 in the matrix&lt;/P&gt;&lt;P&gt;3. write a measure as follows:&lt;/P&gt;&lt;P&gt;measure amount := if ( selectedvalue ( table3 [year]) =selectedvalue (table1 [year]) , calculate (sum(amount), filter (your_table , year= selectedvalue (table1 [year]) , if (selectedvalue ( table3 [year]) =selectedvalue (table2 [year]) ,&amp;nbsp;calculate (sum(amount), filter (your_table , year= selectedvalue (table2 [year]) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your requirement is a bit unconventional, but I'm happy to assist. Could you provide more details on the rationale behind using two slicers? This approach seems complex, and I'm wondering if there's a specific reason you're choosing this method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post helps, then I would appreciate a thumbs up&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and mark it as the solution&amp;nbsp;to help the other members find it more quickly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2024 02:18:44 GMT</pubDate>
    <dc:creator>Selva-Salimi</dc:creator>
    <dc:date>2024-09-11T02:18:44Z</dc:date>
    <item>
      <title>Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4141354#M164578</link>
      <description>&lt;P&gt;Dears All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls, your help,&amp;nbsp;I have a database in SQL called "table", and my problem is that I don't know how to have a measure that is not affected by the selection of 2 segments, which in my example are years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this example I use the element called "Financial Reporting Matrix By Profitbase". I'm putting together a financial income statement that allows me to compare 2 selected years with a segmenter, as shown in the image:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The database is similar to this in SQL, but with milions of rows:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Which DAX function should I use or combine?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rodrigo Puente&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 20:54:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4141354#M164578</guid>
      <dc:creator>rod_puente</dc:creator>
      <dc:date>2024-09-09T20:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4141569#M164592</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="787215" data-lia-user-login="rod_puente" class="lia-mention lia-mention-user"&gt;rod_puente&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use All() or ALLSELECTED() to ignore slicer selections&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 01:15:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4141569#M164592</guid>
      <dc:creator>powerbiexpert22</dc:creator>
      <dc:date>2024-09-10T01:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4141734#M164603</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="787215" data-lia-user-login="rod_puente" class="lia-mention lia-mention-user"&gt;rod_puente&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I agree with powerbiexpert22&amp;nbsp;, if you have trouble writing a measure, please explain your needs and show the expected results in a picture.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 02:34:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4141734#M164603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-10T02:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4142858#M164652</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that the slicers should not cross, for example the "Year 1" slicer should affect only the "Amount: 2024" column, and the "Year 2" slicer should affect only the "Amount: 2023" column. When I apply the ALL() or ALLEXCEPT() functions, it does not work, and it seems that I need to make a combined function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rodrigo P&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 13:17:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4142858#M164652</guid>
      <dc:creator>rod_puente</dc:creator>
      <dc:date>2024-09-10T13:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4142859#M164653</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408509" data-lia-user-login="powerbiexpert22" class="lia-mention lia-mention-user"&gt;powerbiexpert22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that the slicers should not cross, for example the "Year 1" slicer should affect only the "Amount: 2024" column, and the "Year 2" slicer should affect only the "Amount: 2023" column. When I apply the ALL() or ALLEXCEPT() functions, it does not work, and it seems that I need to make a combined function.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 13:17:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4142859#M164653</guid>
      <dc:creator>rod_puente</dc:creator>
      <dc:date>2024-09-10T13:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4142937#M164657</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="787215" data-lia-user-login="rod_puente" class="lia-mention lia-mention-user"&gt;rod_puente&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for &lt;SPAN&gt;Amount: 2024 , try to use All(year2) in your calculation , similarly , for amount 2023, try&amp;nbsp;All(year1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;also it would be helpful if you can share power bi file along with sample data and what you are trying to acheive&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 14:01:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4142937#M164657</guid>
      <dc:creator>powerbiexpert22</dc:creator>
      <dc:date>2024-09-10T14:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4143851#M164691</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="787215" data-lia-user-login="rod_puente" class="lia-mention lia-mention-user"&gt;rod_puente&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The purpose of using two slicers is unclear to me, but you can follow these steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. create &lt;STRONG&gt;three&lt;/STRONG&gt;&amp;nbsp;tables for matrix and those two slicer ( you can write sth like summarize(your_table, year) to make it dynamic or just write 2023 and 2024 ) . keep in mind these three tables should not have any relationship with other tables.&lt;/P&gt;&lt;P&gt;2. use one of these tables (table1) in slicer1, table2 in slicer2 and table3 in the matrix&lt;/P&gt;&lt;P&gt;3. write a measure as follows:&lt;/P&gt;&lt;P&gt;measure amount := if ( selectedvalue ( table3 [year]) =selectedvalue (table1 [year]) , calculate (sum(amount), filter (your_table , year= selectedvalue (table1 [year]) , if (selectedvalue ( table3 [year]) =selectedvalue (table2 [year]) ,&amp;nbsp;calculate (sum(amount), filter (your_table , year= selectedvalue (table2 [year]) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your requirement is a bit unconventional, but I'm happy to assist. Could you provide more details on the rationale behind using two slicers? This approach seems complex, and I'm wondering if there's a specific reason you're choosing this method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post helps, then I would appreciate a thumbs up&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and mark it as the solution&amp;nbsp;to help the other members find it more quickly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 02:18:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/4143851#M164691</guid>
      <dc:creator>Selva-Salimi</dc:creator>
      <dc:date>2024-09-11T02:18:44Z</dc:date>
    </item>
  </channel>
</rss>

