<?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: conditionally highlight column IF certain category rows has a value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditionally-highlight-column-IF-certain-category-rows-has-a/m-p/2688662#M80883</link>
    <description>&lt;P&gt;Awesome thanks, I'll see how I go!&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2022 05:38:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-09T05:38:35Z</dc:date>
    <item>
      <title>conditionally highlight column IF certain category rows has a value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditionally-highlight-column-IF-certain-category-rows-has-a/m-p/2651587#M78196</link>
      <description>&lt;P&gt;Hello! I am trying to make a Gantt chart with a matrix visual. (Free Gantt charts don't meet my needs)&lt;/P&gt;&lt;P&gt;I need help with some DAX, if it is even possible!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to highlight a whole column to show when a public holiday is. So the challenge is conditionally highlighting a cell when another cell in that column is also highlighted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure [items in period] based on this blog &lt;A href="https://blog.gbrueckl.at/2014/12/events-in-progress-for-time-periods-in-dax/" target="_blank" rel="noopener"&gt;https://blog.gbrueckl.at/2014/12/events-in-progress-for-time-periods-in-dax/&lt;/A&gt;, to return a one if an &lt;STRONG&gt;item&lt;/STRONG&gt; occurs on a date, based on the items start and end date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a measure to use for conditional formatting in the matrix. It colours based on if the item is on that date (2=blue in my picture) and&amp;nbsp; if it is a key date (1=orange in my picture).&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dynamic background =&lt;BR /&gt;&lt;BR /&gt;SWITCH( TRUE(),&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECTEDVALUE(Category[Category]) = "Key date", 1,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Items in period] &amp;gt;= 1, 2,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; )&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;What I want to do is highlight the "Key date" in the other rows, if there is not an item in there. This the yellow (yellow =3) cells in my desired output.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Desired output&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Sample data&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Item&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Start Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;End Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Project&lt;/TD&gt;&lt;TD&gt;Project 10&lt;/TD&gt;&lt;TD&gt;20/12/2021&lt;/TD&gt;&lt;TD&gt;21/12/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Project&lt;/TD&gt;&lt;TD&gt;Project 11&lt;/TD&gt;&lt;TD&gt;20/12/2021&lt;/TD&gt;&lt;TD&gt;31/12/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Key date&lt;/TD&gt;&lt;TD&gt;Christmas public holiday&lt;/TD&gt;&lt;TD&gt;25/12/2021&lt;/TD&gt;&lt;TD&gt;25/12/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Project&lt;/TD&gt;&lt;TD&gt;Project 12&lt;/TD&gt;&lt;TD&gt;28/12/2021&lt;/TD&gt;&lt;TD&gt;30/12/2021&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 01:21:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditionally-highlight-column-IF-certain-category-rows-has-a/m-p/2651587#M78196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-21T01:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: conditionally highlight column IF certain category rows has a value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditionally-highlight-column-IF-certain-category-rows-has-a/m-p/2654517#M78386</link>
      <description>&lt;P&gt;If you want to report on things that are not there then you need disconnected tables (with all potential dates) and cartesian products (with all category items).&amp;nbsp; Then you can calculate a measure for each of the cells of your cartesian based on the key date logic.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 01:56:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditionally-highlight-column-IF-certain-category-rows-has-a/m-p/2654517#M78386</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-07-22T01:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: conditionally highlight column IF certain category rows has a value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditionally-highlight-column-IF-certain-category-rows-has-a/m-p/2665116#M79172</link>
      <description>&lt;P&gt;Hi aaahello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for that the information you have provided is not making the problem clear to me. Can you please tell me how does the [items in period] calculate and when to use the pink color?&lt;/P&gt;
&lt;P&gt;Please provide me with more details about your data and your problem or share me with your pbix file &lt;STRONG&gt;after removing sensitive data&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to:&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%7Cv-jianboli%40microsoft.com%7Cd07496a2caef4c14ee5d08da6e13a57f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637943327917507206%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=qa2KRhweo4gIMPLhto3MMG3FZFZDgaND7M32AxCMfG4%3D&amp;amp;reserved=0" target="_blank"&gt;How to provide sample data in the Power BI Forum&lt;/A&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-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C01%7Cv-jianboli%40microsoft.com%7Cd07496a2caef4c14ee5d08da6e13a57f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637943327917507206%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=fQIsKU%2Bj99m4YA%2FEKMb0PR%2F89vUPWqb6r5QLdZRFAGU%3D&amp;amp;reserved=0" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 13:24:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditionally-highlight-column-IF-certain-category-rows-has-a/m-p/2665116#M79172</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-07-27T13:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: conditionally highlight column IF certain category rows has a value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditionally-highlight-column-IF-certain-category-rows-has-a/m-p/2688662#M80883</link>
      <description>&lt;P&gt;Awesome thanks, I'll see how I go!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 05:38:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditionally-highlight-column-IF-certain-category-rows-has-a/m-p/2688662#M80883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-09T05:38:35Z</dc:date>
    </item>
  </channel>
</rss>

