<?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 IF Row is True display value from Date1 if False display value from Date2 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-Row-is-True-display-value-from-Date1-if-False-display-value/m-p/2957296#M98293</link>
    <description>&lt;P&gt;Hello everyone, maybe one of you can help me with this. I have a Table where i need to check a row "category" if it contains certain Values. If one of this Value is True i want to display the value of my Date1 Row if not it need to display the value of the row date2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Dax Measure looks like this, but i dont know how to display the value from the date rows. Can someone help? Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(&lt;/P&gt;&lt;P&gt;CONTAINS('table', 'table'[category], "A") ll&lt;/P&gt;&lt;P&gt;CONTAINS('table', 'table'[category], "B") ll&lt;/P&gt;&lt;P&gt;CONTAINS('table', 'table'[category], "C"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;?? DISPLAY DATE1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;?? DISPLAY DATE2&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
    <pubDate>Thu, 08 Dec 2022 16:41:38 GMT</pubDate>
    <dc:creator>h3x</dc:creator>
    <dc:date>2022-12-08T16:41:38Z</dc:date>
    <item>
      <title>IF Row is True display value from Date1 if False display value from Date2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-Row-is-True-display-value-from-Date1-if-False-display-value/m-p/2957296#M98293</link>
      <description>&lt;P&gt;Hello everyone, maybe one of you can help me with this. I have a Table where i need to check a row "category" if it contains certain Values. If one of this Value is True i want to display the value of my Date1 Row if not it need to display the value of the row date2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Dax Measure looks like this, but i dont know how to display the value from the date rows. Can someone help? Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(&lt;/P&gt;&lt;P&gt;CONTAINS('table', 'table'[category], "A") ll&lt;/P&gt;&lt;P&gt;CONTAINS('table', 'table'[category], "B") ll&lt;/P&gt;&lt;P&gt;CONTAINS('table', 'table'[category], "C"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;?? DISPLAY DATE1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;?? DISPLAY DATE2&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 16:41:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-Row-is-True-display-value-from-Date1-if-False-display-value/m-p/2957296#M98293</guid>
      <dc:creator>h3x</dc:creator>
      <dc:date>2022-12-08T16:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: IF Row is True display value from Date1 if False display value from Date2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-Row-is-True-display-value-from-Date1-if-False-display-value/m-p/2957974#M98350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="483952" data-lia-user-login="h3x" class="lia-mention lia-mention-user"&gt;h3x&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create a calculated column as below to get it:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
IF (
    IFERROR ( SEARCH ( "A", 'Table'[category], 1, 0 ), 0 ) &amp;gt; 0
        || IFERROR ( SEARCH ( "B", 'Table'[category], 1, 0 ), 0 ) &amp;gt; 0
        || IFERROR ( SEARCH ( "C", 'Table'[category], 1, 0 ), 0 ) &amp;gt; 0,
    'Table'[Date1],
    'Table'[Date2]
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&amp;nbsp;&lt;/STRONG&gt;in your tables&lt;STRONG&gt;&amp;nbsp;(&lt;EM&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;with&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;Text&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;format and your&amp;nbsp;&lt;STRONG&gt;expected result&amp;nbsp;&lt;/STRONG&gt;with backend logic and special examples.&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;simplified&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=04%7C01%7Cv-yiruan%40microsoft.com%7C4f580813734d4a8355b008da16f6e91a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637847547341062885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=YJvujige2YITXKbKED9JieQm5LBdf%2F3IYPM4ggdiijQ%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 02:25:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-Row-is-True-display-value-from-Date1-if-False-display-value/m-p/2957974#M98350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-09T02:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: IF Row is True display value from Date1 if False display value from Date2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-Row-is-True-display-value-from-Date1-if-False-display-value/m-p/2959244#M98450</link>
      <description>&lt;P&gt;Worked fine! Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 13:54:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-Row-is-True-display-value-from-Date1-if-False-display-value/m-p/2959244#M98450</guid>
      <dc:creator>h3x</dc:creator>
      <dc:date>2022-12-09T13:54:25Z</dc:date>
    </item>
  </channel>
</rss>

