<?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 a diferent calculated measure in a Matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3189783#M115656</link>
    <description>&lt;P&gt;Hi Wilson,&lt;/P&gt;&lt;P&gt;It didn't work, returned 1 for all cells:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the measure like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AnswerPercentage = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;TotalAnswers&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'fact QA_Evaluations_Questions_Answers_Fact'&lt;/SPAN&gt;&lt;SPAN&gt;[Answer_Id_Selected]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;REMOVEFILTERS&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'dim QA_Answers_Selected_Dim'&lt;/SPAN&gt;&lt;SPAN&gt;[Answer_Key]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'fact QA_Evaluations_Questions_Answers_Fact'&lt;/SPAN&gt;&lt;SPAN&gt;[Answer_Id_Selected]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;TotalAnswers&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is the model:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Apr 2023 21:53:24 GMT</pubDate>
    <dc:creator>jonatan_ap</dc:creator>
    <dc:date>2023-04-15T21:53:24Z</dc:date>
    <item>
      <title>Insert a diferent calculated measure in a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3189402#M115622</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following Matrix with Questions and Answers as columns and rows headers (2 different tables).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If I export the table I have this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to insert the percentage per question beside each count of question*answer like shown in the table below highlighted in yellow&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Is that something doable in Power BI?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 04:58:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3189402#M115622</guid>
      <dc:creator>jonatan_ap</dc:creator>
      <dc:date>2023-04-15T04:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a diferent calculated measure in a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3189572#M115627</link>
      <description>&lt;P&gt;Hello Jonatan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, this is doable in Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming this is the only table in your data model, the measure would look something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AnswerPercentage =
VAR TotalAnswers = 
CALCULATE (
    SUM ( Table1[#] ),
    REMOVEFILTERS ( Table1[Answers] )
)

RETURN
DIVIDE (
    SUM ( Table1[#] ),
    TotalAnswers
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;----------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 13:44:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3189572#M115627</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-04-15T13:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a diferent calculated measure in a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3189674#M115641</link>
      <description>&lt;P&gt;Hi Wilson,&lt;/P&gt;&lt;P&gt;I actually have 2 tables, 1 for Questions (it's a fact table so contains more than just questions but to be simple let's call it Questions) and 1 for Answers, and in the Questions table I have the reference Answer Key to only 1 Answer as only 1 Answer can be picked per Question. The solution you proposed works fone if I have only 1 table. I appreciate the time you spend in this question. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 18:02:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3189674#M115641</guid>
      <dc:creator>jonatan_ap</dc:creator>
      <dc:date>2023-04-15T18:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a diferent calculated measure in a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3189709#M115645</link>
      <description>&lt;P&gt;Jonatan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that case, I suspect there's a chance the measure would still work if you change the REMOVEFILTER to instead be REMOVEFILTERS ( Answers[Answer] ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that doesn't work, can you share a screenshot of the Model view from your pbix? Also, does the matrix row come from the Questions fact table and the matrix column from the Answers (dimension?) table?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;----------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 19:46:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3189709#M115645</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-04-15T19:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a diferent calculated measure in a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3189783#M115656</link>
      <description>&lt;P&gt;Hi Wilson,&lt;/P&gt;&lt;P&gt;It didn't work, returned 1 for all cells:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the measure like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AnswerPercentage = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;TotalAnswers&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'fact QA_Evaluations_Questions_Answers_Fact'&lt;/SPAN&gt;&lt;SPAN&gt;[Answer_Id_Selected]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;REMOVEFILTERS&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'dim QA_Answers_Selected_Dim'&lt;/SPAN&gt;&lt;SPAN&gt;[Answer_Key]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'fact QA_Evaluations_Questions_Answers_Fact'&lt;/SPAN&gt;&lt;SPAN&gt;[Answer_Id_Selected]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;TotalAnswers&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is the model:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 21:53:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3189783#M115656</guid>
      <dc:creator>jonatan_ap</dc:creator>
      <dc:date>2023-04-15T21:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a diferent calculated measure in a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3189793#M115658</link>
      <description>&lt;P&gt;Jonatan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What if you turn off bi-directional filtering between the two tables? Generally speaking, one-to-many relationships should only go in one direction.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;----------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 23:22:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3189793#M115658</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-04-15T23:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a diferent calculated measure in a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3192148#M115785</link>
      <description>&lt;P&gt;Thank you Wilson,&lt;/P&gt;&lt;P&gt;After reading and reading in Google for possible solutions, I found that there is a native option called Percent of Row total (see screenshot below) that does exactly what I was looking for, I just needed to put the same field as a Value and select this option and that was it:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is the final result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 19:03:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3192148#M115785</guid>
      <dc:creator>jonatan_ap</dc:creator>
      <dc:date>2023-04-17T19:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a diferent calculated measure in a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3192250#M115792</link>
      <description>&lt;P&gt;Excellent, glad you figured it out jonatan. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 21:18:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Insert-a-diferent-calculated-measure-in-a-Matrix/m-p/3192250#M115792</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-04-17T21:18:56Z</dc:date>
    </item>
  </channel>
</rss>

