<?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 Calculation needed for matrix visual in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-needed-for-matrix-visual/m-p/2080540#M47196</link>
    <description>&lt;P&gt;Define the following measure (I use __ to indicate I use variables in measures)&lt;BR /&gt;&lt;BR /&gt;numbersstaff =&lt;BR /&gt;&lt;BR /&gt;VAR __stafftable = SUMMARIZE(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;person,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"member of staff",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; isStaff (the measure from above)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;RETURN SUMX(__stafftable, __stafftable[member of staff])&lt;BR /&gt;&lt;BR /&gt;This is like pregrouping the data for further calculations. Really helpful in case you wanna work just with raw data.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Sep 2021 14:01:22 GMT</pubDate>
    <dc:creator>Schmidtmayer</dc:creator>
    <dc:date>2021-09-16T14:01:22Z</dc:date>
    <item>
      <title>Dax Calculation needed for matrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-needed-for-matrix-visual/m-p/2067340#M46727</link>
      <description>&lt;P&gt;Hello all.&lt;/P&gt;&lt;P&gt;I have a fact table that looks at training courses data. For a member of staff to be considered Compliant they must have a completion status in any one of three courses (which I have called Part1Pass)&amp;nbsp; and a completion status in any one of 15 other courses (which I have called Part2Pass).&amp;nbsp; I have created two calculated columns which returns "yes" if the condition is true and "no" if not. The problem I have is the two conditions i want to evaluate are on different rows for the same member of staff. Using Dax Studio I have created the below to demonstrate what I am talking about.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DAX I want to create would check for both values of yes and if so show the members of staff in a a visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help much appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 17:07:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-needed-for-matrix-visual/m-p/2067340#M46727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-09T17:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Calculation needed for matrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-needed-for-matrix-visual/m-p/2067390#M46730</link>
      <description>&lt;P&gt;I prefer to work with numbers, so, this might look a bit too complicated. Just took the following sample data:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;From your logic, a would be staff, b,c,d wouldn't.&lt;BR /&gt;&lt;BR /&gt;First: Transform these yes and no into numbers no = 0 and yes = 1, using calculated columns:&lt;BR /&gt;&lt;BR /&gt;test1passint = IF(test1pass = "yes", 1, 0)&lt;BR /&gt;&lt;BR /&gt;test2passint = IF(test2pass = "yes", 1, 0)&lt;BR /&gt;&lt;BR /&gt;This gives this result:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Now you can transform text into sums, define the following measure:&lt;BR /&gt;&lt;BR /&gt;isStaff = IF(SUMX(table, test1passint) = 1 &amp;amp;&amp;amp; SUMX(table, test2passint) = 1, 1, 0)&lt;BR /&gt;&lt;BR /&gt;Now placing all persons in a table and putting isStaff as a filter with 1 as its value, returns just a:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 17:49:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-needed-for-matrix-visual/m-p/2067390#M46730</guid>
      <dc:creator>Schmidtmayer</dc:creator>
      <dc:date>2021-09-09T17:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Calculation needed for matrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-needed-for-matrix-visual/m-p/2075159#M46986</link>
      <description>&lt;P&gt;That worked a treat, Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help with another step! Based on the above, if i wanted to display in a card a count of compliant staff what measure would I use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 10:56:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-needed-for-matrix-visual/m-p/2075159#M46986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-14T10:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Calculation needed for matrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-needed-for-matrix-visual/m-p/2080540#M47196</link>
      <description>&lt;P&gt;Define the following measure (I use __ to indicate I use variables in measures)&lt;BR /&gt;&lt;BR /&gt;numbersstaff =&lt;BR /&gt;&lt;BR /&gt;VAR __stafftable = SUMMARIZE(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;person,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"member of staff",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; isStaff (the measure from above)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;RETURN SUMX(__stafftable, __stafftable[member of staff])&lt;BR /&gt;&lt;BR /&gt;This is like pregrouping the data for further calculations. Really helpful in case you wanna work just with raw data.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 14:01:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-needed-for-matrix-visual/m-p/2080540#M47196</guid>
      <dc:creator>Schmidtmayer</dc:creator>
      <dc:date>2021-09-16T14:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Calculation needed for matrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-needed-for-matrix-visual/m-p/2082065#M47235</link>
      <description>&lt;P&gt;Thats Fantastic! Thank you very much for your help&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 07:55:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-needed-for-matrix-visual/m-p/2082065#M47235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-17T07:55:28Z</dc:date>
    </item>
  </channel>
</rss>

