<?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: Filter corresponding columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-corresponding-columns/m-p/4161070#M165324</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try the following methods.&amp;nbsp;Create a new slicer table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Slicer = VALUES('Table'[account number])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
Var _table=CALCULATETABLE(VALUES('Table'[journal number]),FILTER(ALL('Table'),[account number]=SELECTEDVALUE(Slicer[account number])))
RETURN
IF(SELECTEDVALUE('Table'[journal number]) IN _table,1,IF(SELECTEDVALUE(Slicer[account number])=BLANK(),1,0))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this your desired outcome? Please review the attachment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2024 02:51:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-20T02:51:09Z</dc:date>
    <item>
      <title>Filter corresponding columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-corresponding-columns/m-p/4159035#M165256</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a matrix visual with account numbers as columns, journal numbers as rows and amounts as values, ex:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1000&amp;nbsp; &amp;nbsp; &amp;nbsp;2000&amp;nbsp; &amp;nbsp; &amp;nbsp;3000&amp;nbsp; &amp;nbsp; 4000&lt;BR /&gt;101&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;102&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -20&lt;BR /&gt;103&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-30&lt;BR /&gt;104&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-50&lt;BR /&gt;&lt;BR /&gt;I have added a slicer for account number. When I filter on an account number, I want the matrix to show me the journal numbers with values on this account number, and also the corresponding account numbers/values. For example, if i filter on account number 3000, this is how I want the matrix to look like:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1000&amp;nbsp; &amp;nbsp;2000&amp;nbsp; &amp;nbsp;3000&lt;BR /&gt;102&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&amp;nbsp; &amp;nbsp; &amp;nbsp;-20&lt;/P&gt;&lt;P&gt;103&amp;nbsp; 35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-30&lt;BR /&gt;&lt;BR /&gt;I have tried using different measures, but they all seem to return only the account number I have filtered on. Help is highly appreciated &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 07:56:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-corresponding-columns/m-p/4159035#M165256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-19T07:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter corresponding columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-corresponding-columns/m-p/4159146#M165263</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you should have a table for your journal numbers (lets call it DimJournal which contains all unique journal numbers) then you should use it as row of your matrix. then write a measure as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;measure val := var _selectedjournal = selectedvalue (DimJournal [Journal Id])&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;calculate (sum( your_table [value]) , filter (your_table , your_table [journal Id] = _selectedjournal))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;** do not create any relationship between your table and Dimjournal&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;&amp;nbsp;and mark it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 08:32:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-corresponding-columns/m-p/4159146#M165263</guid>
      <dc:creator>Selva-Salimi</dc:creator>
      <dc:date>2024-09-19T08:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filter corresponding columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-corresponding-columns/m-p/4159395#M165270</link>
      <description>&lt;P&gt;Thank you for answering. I tried your solution, but the matrix still only shows the account number that is filtered on, and not the others.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 10:06:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-corresponding-columns/m-p/4159395#M165270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-19T10:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filter corresponding columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-corresponding-columns/m-p/4159621#M165277</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there was a misunderstanding between account and journal. sorry for that. as you want to select an account so you should have account numbers as a unique table (lets call it DimAccount) and &lt;SPAN&gt;then you should use it as slicer. then write a measure as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;measure val := var _selectedjournal = selectedvalue (DimAccount [Account Id])&lt;/P&gt;&lt;P&gt;var _selectedjournal= summarize (filter (all(your_table) , Account in _selectedjournal) , your_table[journal])&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;calculate (sum( your_table [value]) , filter (your_table , your_table [journal Id] in _selectedjournal))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the columns of matrix should selected from your_table and there should not be any relation between these two tables.&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;&amp;nbsp;and mark it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&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>Thu, 19 Sep 2024 19:04:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-corresponding-columns/m-p/4159621#M165277</guid>
      <dc:creator>Selva-Salimi</dc:creator>
      <dc:date>2024-09-19T19:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filter corresponding columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-corresponding-columns/m-p/4161070#M165324</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try the following methods.&amp;nbsp;Create a new slicer table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Slicer = VALUES('Table'[account number])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
Var _table=CALCULATETABLE(VALUES('Table'[journal number]),FILTER(ALL('Table'),[account number]=SELECTEDVALUE(Slicer[account number])))
RETURN
IF(SELECTEDVALUE('Table'[journal number]) IN _table,1,IF(SELECTEDVALUE(Slicer[account number])=BLANK(),1,0))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this your desired outcome? Please review the attachment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 02:51:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-corresponding-columns/m-p/4161070#M165324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-20T02:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filter corresponding columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-corresponding-columns/m-p/4161620#M165342</link>
      <description>&lt;P&gt;That worked just the way I wanted! Thank you so much for helping me&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 07:22:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-corresponding-columns/m-p/4161620#M165342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-20T07:22:56Z</dc:date>
    </item>
  </channel>
</rss>

