<?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 Remove filter on a column but also find selected value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-filter-on-a-column-but-also-find-selected-value/m-p/3741068#M145894</link>
    <description>&lt;P&gt;I am trying to come up with a tooltip page on a matrix that shows line chart or column chart for all years and highlights the year based on where the cursor is placed ( through conditional formatting).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Data :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The matrix visual looks as below with Year on the COlumn and City on the Row&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Measure - Sum&lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt; &lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Fact Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Fact Count]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a tooltip page that displays a line chart for all years 2021 - 2024 (irrespective of slicer filtering) but highlights the year column on which cursor is placed in a different color.&lt;/P&gt;&lt;P&gt;For Example, if I place my cursor second row last column, I should show the column / bar that shows the 2024 value for Philadephia which is 3 in a different color. But there should be 5 columns for 2020, 2021...2024 even though the year slicer is filtered from 2021 to 2024.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how far I got:&amp;nbsp; I turned off Keep Filters on the tooltip page. Added the city as a filter card.&amp;nbsp; With &lt;STRONG&gt;Year&lt;/STRONG&gt; on x-axis and&amp;nbsp;&lt;STRONG&gt;SumMeasure&lt;/STRONG&gt;&amp;nbsp;on y-axis, I am able to get all the years.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem: How do I highlight the bar in a different color based on the cursor position. Since I am turning off Keep Filters, year is not flowing through so I do not know where the cursor was placed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I achieve this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 22:08:53 GMT</pubDate>
    <dc:creator>Hoping</dc:creator>
    <dc:date>2024-03-04T22:08:53Z</dc:date>
    <item>
      <title>Remove filter on a column but also find selected value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-filter-on-a-column-but-also-find-selected-value/m-p/3741068#M145894</link>
      <description>&lt;P&gt;I am trying to come up with a tooltip page on a matrix that shows line chart or column chart for all years and highlights the year based on where the cursor is placed ( through conditional formatting).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Data :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The matrix visual looks as below with Year on the COlumn and City on the Row&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Measure - Sum&lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt; &lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Fact Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Fact Count]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a tooltip page that displays a line chart for all years 2021 - 2024 (irrespective of slicer filtering) but highlights the year column on which cursor is placed in a different color.&lt;/P&gt;&lt;P&gt;For Example, if I place my cursor second row last column, I should show the column / bar that shows the 2024 value for Philadephia which is 3 in a different color. But there should be 5 columns for 2020, 2021...2024 even though the year slicer is filtered from 2021 to 2024.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how far I got:&amp;nbsp; I turned off Keep Filters on the tooltip page. Added the city as a filter card.&amp;nbsp; With &lt;STRONG&gt;Year&lt;/STRONG&gt; on x-axis and&amp;nbsp;&lt;STRONG&gt;SumMeasure&lt;/STRONG&gt;&amp;nbsp;on y-axis, I am able to get all the years.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem: How do I highlight the bar in a different color based on the cursor position. Since I am turning off Keep Filters, year is not flowing through so I do not know where the cursor was placed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I achieve this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 22:08:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-filter-on-a-column-but-also-find-selected-value/m-p/3741068#M145894</guid>
      <dc:creator>Hoping</dc:creator>
      <dc:date>2024-03-04T22:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Remove filter on a column but also find selected value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-filter-on-a-column-but-also-find-selected-value/m-p/3741646#M145913</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;One of ways to achieve this is to create a disconnected year axis table, something like below.&lt;BR /&gt;Please check the below picture and the attached pbix file.&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SumMeasure: = 
SUM(Data[Fact Count])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/treatas-function?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;TREATAS function - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Tooltip SumMeasure: = 
CALCULATE (
    [SumMeasure:],
    TREATAS ( VALUES ( 'CT Year tooltip axis'[Year] ), 'Year'[Year] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cf Column color: = 
VAR _yearselect =
    SELECTEDVALUE( 'Year'[Year] )
RETURN
    IF (
        SELECTEDVALUE ( 'CT Year tooltip axis'[Year] ) = _yearselect,
        "Red",
        "Yellow"
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 04:06:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-filter-on-a-column-but-also-find-selected-value/m-p/3741646#M145913</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-03-05T04:06:10Z</dc:date>
    </item>
  </channel>
</rss>

