<?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: Insert value based on different columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-value-based-on-different-columns/m-p/799477#M4800</link>
    <description>&lt;P&gt;Thanks for your reply, the following solutions based on your answer works for me:&lt;/P&gt;&lt;P&gt;Measure= IF(&lt;BR /&gt;AND(&lt;BR /&gt;OR(&lt;BR /&gt;CONTAINS(BaseORderAnswerLine;BaseORderAnswerLine[answer];"Ja";BaseORderAnswerLine[Question];"ONG000.04");&lt;BR /&gt;CONTAINS(BaseORderAnswerLine;BaseORderAnswerLine[answer];"Ja";BaseORderAnswerLine[Question];"ONG000.05"));&lt;BR /&gt;CONTAINS(BaseORderAnswerLine;BaseORderAnswerLine[answer];"Ja";BaseORderAnswerLine[Question];"ONG020")&lt;BR /&gt;)&lt;BR /&gt;;1;0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with this, I have the right meausure output!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2019 11:01:53 GMT</pubDate>
    <dc:creator>joep78</dc:creator>
    <dc:date>2019-09-23T11:01:53Z</dc:date>
    <item>
      <title>Insert value based on different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-value-based-on-different-columns/m-p/797944#M4730</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m relatively new using PBI and hopefully somebody can help me figuring out how to write a DAX statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My table name is ‘AnswerLine’ and within this table I’ve got a question column (Question) and an answer column (Answer)&lt;/P&gt;&lt;P&gt;I want to do a measure that when a combination of different answers is set on Y, a column (value) will get a value. If the answer is N, there is no action needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Question “ONG000.04” = Y &amp;amp; “ONG000.05” = Y then Value = 2&lt;/P&gt;&lt;P&gt;I’ve got 9 different combinations and in total we have 23 different questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if anybody can help me out with this input. If more input is needed, please let me know!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for response!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 10:07:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-value-based-on-different-columns/m-p/797944#M4730</guid>
      <dc:creator>joep78</dc:creator>
      <dc:date>2019-09-20T10:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Insert value based on different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-value-based-on-different-columns/m-p/798233#M4743</link>
      <description>&lt;P&gt;Adding a conditional column in the query editor perhaps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.office.com/en-us/article/add-a-conditional-column-power-query-f2422ed1-f565-4e64-ba3f-4f8d4616254e" target="_blank"&gt;https://support.office.com/en-us/article/add-a-conditional-column-power-query-f2422ed1-f565-4e64-ba3f-4f8d4616254e&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works for you, please mark my answer as sovled. Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 14:42:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-value-based-on-different-columns/m-p/798233#M4743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-20T14:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Insert value based on different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-value-based-on-different-columns/m-p/799151#M4791</link>
      <description>&lt;P&gt;@&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/172773" target="_self"&gt;joep78&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe try this primitive solution:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = IF(CONTAINS(AnswerLine,AnswerLine[Answer],"Y"),1,0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure 2 = COUNTX(AnswerLine,"Y")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Sep 2019 06:44:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-value-based-on-different-columns/m-p/799151#M4791</guid>
      <dc:creator>natabird3</dc:creator>
      <dc:date>2019-09-23T06:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Insert value based on different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-value-based-on-different-columns/m-p/799477#M4800</link>
      <description>&lt;P&gt;Thanks for your reply, the following solutions based on your answer works for me:&lt;/P&gt;&lt;P&gt;Measure= IF(&lt;BR /&gt;AND(&lt;BR /&gt;OR(&lt;BR /&gt;CONTAINS(BaseORderAnswerLine;BaseORderAnswerLine[answer];"Ja";BaseORderAnswerLine[Question];"ONG000.04");&lt;BR /&gt;CONTAINS(BaseORderAnswerLine;BaseORderAnswerLine[answer];"Ja";BaseORderAnswerLine[Question];"ONG000.05"));&lt;BR /&gt;CONTAINS(BaseORderAnswerLine;BaseORderAnswerLine[answer];"Ja";BaseORderAnswerLine[Question];"ONG020")&lt;BR /&gt;)&lt;BR /&gt;;1;0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with this, I have the right meausure output!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 11:01:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-value-based-on-different-columns/m-p/799477#M4800</guid>
      <dc:creator>joep78</dc:creator>
      <dc:date>2019-09-23T11:01:53Z</dc:date>
    </item>
  </channel>
</rss>

