<?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: Dax formula for matching string values between different columns for conditional formatting purposes in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3401318#M128438</link>
    <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="457174" data-lia-user-login="kalkhudary" class="lia-mention lia-mention-user"&gt;kalkhudary&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The MAX() function in the visual is return the current context filter value&amp;nbsp; , in the visual we just need to use the MAX() function to get the cuurent value like Projuct and subType.&lt;/P&gt;
&lt;P&gt;You can create a simple measure like :&lt;BR /&gt;Measure =&amp;nbsp; MAX('Table'[Project])&lt;/P&gt;
&lt;P&gt;then you can&amp;nbsp; put it on your Matrix visual to test what the value return so you can understand it!~&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 02:22:30 GMT</pubDate>
    <dc:creator>v-yueyunzh-msft</dc:creator>
    <dc:date>2023-08-28T02:22:30Z</dc:date>
    <item>
      <title>Dax formula for matching string values between different columns for conditional formatting purposes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3399545#M128325</link>
      <description>&lt;P&gt;Hello Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to dax the following logic to be able to use it as a conditional format on a matrix table " Project Column" under the below logic. So the logic says if the project mentioned is tagged to any of the projects subtypes give me a 0 and if not than 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here we have 3 projects with their assigned subtypes and no subtype of another project should be tagged to any to other project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WhenI created the below dax, it looks correct but it is not working and giving me an error when I try to set it to the field "projects" as conditional format so not sure if it is working or even daxed right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help and guidance would be Super!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Improper Program Tagging - CF=&lt;/P&gt;&lt;P&gt;MAXX('Table1',&lt;/P&gt;&lt;P&gt;IF('Table1' [Project]= "Creativity" &amp;amp;&amp;amp; 'Table1' [Project Subtype] IN {"ABCD","Crafts","CDO", "PR", "MF 6"}, 0,1) ||&lt;/P&gt;&lt;P&gt;IF('Table1' [Project]= Toys" &amp;amp;&amp;amp; 'Table1' [Project Subtype] = “Lego",0,1) ||&lt;/P&gt;&lt;P&gt;IF('Table1' [Project]="Online Gaming" &amp;amp;&amp;amp; 'Table1' [Project Subtype]= "Avengers",0,1))&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 16:33:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3399545#M128325</guid>
      <dc:creator>kalkhudary</dc:creator>
      <dc:date>2023-08-25T16:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula for matching string values between different columns for conditional formatting purposes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3401170#M128426</link>
      <description>&lt;P&gt;That's a rather inventive way of applying filters.&amp;nbsp; Have you tried the standard way?&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2023 22:58:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3401170#M128426</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-08-27T22:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula for matching string values between different columns for conditional formatting purposes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3401261#M128433</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;I didn't actually. Would you have a better suggestion or way that can match the above logic.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 01:26:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3401261#M128433</guid>
      <dc:creator>kalkhudary</dc:creator>
      <dc:date>2023-08-28T01:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula for matching string values between different columns for conditional formatting purposes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3401272#M128434</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="457174" data-lia-user-login="kalkhudary" class="lia-mention lia-mention-user"&gt;kalkhudary&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your dax code , you try to return 1/0 according to the different situation. For your need , you can try to use this dax code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SWITCH(TRUE(),
MAX('Table1' [Project])= "Creativity" &amp;amp;&amp;amp; MAX('Table1' [Project Subtype]) in {"ABCD","Crafts","CDO", "PR", "MF 6"} , 0,
MAX('Table1' [Project])= "Toys" &amp;amp;&amp;amp; MAX('Table1' [Project Subtype]) = "Lego" , 0 ,
MAX('Table1' [Project])= "Online Gaming" &amp;amp;&amp;amp; MAX('Table1' [Project Subtype]) = "Avengers",0,1
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As the differnt data structure and differnt content filter may need to use differnt dax code . And i have no sample data . If this dax code can not meet your need ,&amp;nbsp;you can provide us with your special &lt;STRONG&gt;sample data&lt;/STRONG&gt; and the &lt;STRONG&gt;desired output sample&lt;/STRONG&gt; data in the form of &lt;STRONG&gt;tables&lt;/STRONG&gt;, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 01:44:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3401272#M128434</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-08-28T01:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula for matching string values between different columns for conditional formatting purposes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3401314#M128436</link>
      <description>&lt;P&gt;That worked perfectly! Thanks for your help really. Would you be able to explain to me why this worked better than the code above just for me to learn the difference and understand how you thought about it.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 02:18:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3401314#M128436</guid>
      <dc:creator>kalkhudary</dc:creator>
      <dc:date>2023-08-28T02:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula for matching string values between different columns for conditional formatting purposes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3401318#M128438</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="457174" data-lia-user-login="kalkhudary" class="lia-mention lia-mention-user"&gt;kalkhudary&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The MAX() function in the visual is return the current context filter value&amp;nbsp; , in the visual we just need to use the MAX() function to get the cuurent value like Projuct and subType.&lt;/P&gt;
&lt;P&gt;You can create a simple measure like :&lt;BR /&gt;Measure =&amp;nbsp; MAX('Table'[Project])&lt;/P&gt;
&lt;P&gt;then you can&amp;nbsp; put it on your Matrix visual to test what the value return so you can understand it!~&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 02:22:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3401318#M128438</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-08-28T02:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula for matching string values between different columns for conditional formatting purposes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3401392#M128443</link>
      <description>&lt;P&gt;Thanks Aniya for your answer. It helps put my thoughts together in shape. Much appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 03:15:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formula-for-matching-string-values-between-different-columns/m-p/3401392#M128443</guid>
      <dc:creator>kalkhudary</dc:creator>
      <dc:date>2023-08-28T03:15:59Z</dc:date>
    </item>
  </channel>
</rss>

