<?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: Questions for Creating a Conditional Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Questions-for-Creating-a-Conditional-Column/m-p/3328038#M124648</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;All is well?

I thought I had solved it, but I couldn't get the expected result. I'm sending you a model so you can apply the solution, please.

I need to compare versions of the same attribute of the same element from each table.

If they were the same, I wanted it to return me in the matrix line: "equal versions". If different, return in line: "parameters different".

This comparison needs to be between each attribute of each element of each table.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;I am not able to attach the pbix with&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2023 19:25:15 GMT</pubDate>
    <dc:creator>Iguinrj</dc:creator>
    <dc:date>2023-07-12T19:25:15Z</dc:date>
    <item>
      <title>Questions for Creating a Conditional Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Questions-for-Creating-a-Conditional-Column/m-p/3323871#M124456</link>
      <description>&lt;P&gt;I would like some guidance on how to create a column that satisfies the following condition: I want the column to return me if the attribute value "A1" for element "E1" in table "A" is equal to or different from the attribute value "A1" for element "E1" in table "B". And so on... If the values ​​are equal, I would like the column to display the message "equal parameters"; otherwise "parameters different". It is important to mention that the attributes and elements are the same in all tables.&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 19:56:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Questions-for-Creating-a-Conditional-Column/m-p/3323871#M124456</guid>
      <dc:creator>Iguinrj</dc:creator>
      <dc:date>2023-07-10T19:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Questions for Creating a Conditional Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Questions-for-Creating-a-Conditional-Column/m-p/3326672#M124573</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="459265" data-lia-user-login="Iguinrj" class="lia-mention lia-mention-user"&gt;Iguinrj&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) My test data is the same as yours.&lt;/P&gt;
&lt;P&gt;(2) We can create a calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = var a=CALCULATE(DISTINCTCOUNT('Table'[TABELA]),FILTER('Table','Table'[TABELA]&amp;lt;&amp;gt;EARLIER('Table'[TABELA])))
var b=CALCULATE(DISTINCTCOUNT('Table'[TABELA]),FILTER('Table',[EMEMENTO]=EARLIER('Table'[EMEMENTO])&amp;amp;&amp;amp;[ATRIBUTO]=EARLIER('Table'[ATRIBUTO])&amp;amp;&amp;amp;[TABELA]&amp;lt;&amp;gt;EARLIER('Table'[TABELA])))
return IF(a=b,"equal parameters","parameters different")&lt;/LI-CODE&gt;
&lt;P&gt;(3) Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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&lt;/STRONG&gt;&amp;nbsp;in your tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 06:40:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Questions-for-Creating-a-Conditional-Column/m-p/3326672#M124573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-12T06:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Questions for Creating a Conditional Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Questions-for-Creating-a-Conditional-Column/m-p/3327199#M124596</link>
      <description>&lt;PRE&gt;&lt;SPAN class=""&gt;Thank you friend. I have a great day&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jul 2023 11:21:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Questions-for-Creating-a-Conditional-Column/m-p/3327199#M124596</guid>
      <dc:creator>Iguinrj</dc:creator>
      <dc:date>2023-07-12T11:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Questions for Creating a Conditional Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Questions-for-Creating-a-Conditional-Column/m-p/3328038#M124648</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;All is well?

I thought I had solved it, but I couldn't get the expected result. I'm sending you a model so you can apply the solution, please.

I need to compare versions of the same attribute of the same element from each table.

If they were the same, I wanted it to return me in the matrix line: "equal versions". If different, return in line: "parameters different".

This comparison needs to be between each attribute of each element of each table.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;I am not able to attach the pbix with&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 19:25:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Questions-for-Creating-a-Conditional-Column/m-p/3328038#M124648</guid>
      <dc:creator>Iguinrj</dc:creator>
      <dc:date>2023-07-12T19:25:15Z</dc:date>
    </item>
  </channel>
</rss>

