<?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: Need Help with Matrix Visual - Variance calc in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-with-Matrix-Visual-Variance-calc/m-p/4713112#M180513</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="710207" data-lia-user-login="komaragiri" class="lia-mention lia-mention-user"&gt;komaragiri&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;To achieve this matrix, we will create 3 measures. I've replicated your data in my environment.&lt;BR /&gt;&lt;BR /&gt;First we will create a measure for Planned using the following DAX:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Planned = 
CALCULATE(
    SUM(TestData[Hours]),
    TestData[data source] = "planned"
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Then we will create a measure for Actual using the following DAX:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Actual = 
CALCULATE(
    SUM(TestData[Hours]),
    TestData[data source] = "actual"
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Finally we will create a third measure that calculates the variance between them using the following DAX:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Variance = 
[Planned] - [Actual]&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Once the meaures are created, we can leverage them in a Matrix like so:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this helped, please mark it as the solution so others can benefit too. And if you found it useful, kudos are always appreciated.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Samson&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 May 2025 02:13:13 GMT</pubDate>
    <dc:creator>SamsonTruong</dc:creator>
    <dc:date>2025-05-30T02:13:13Z</dc:date>
    <item>
      <title>Need Help with Matrix Visual - Variance calc</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-with-Matrix-Visual-Variance-calc/m-p/4713103#M180511</link>
      <description>&lt;P&gt;Here is my data file&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Resource Id&lt;/TD&gt;&lt;TD&gt;Resource Name&lt;/TD&gt;&lt;TD&gt;work&lt;/TD&gt;&lt;TD&gt;date&lt;/TD&gt;&lt;TD&gt;Hours&lt;/TD&gt;&lt;TD&gt;flag&lt;/TD&gt;&lt;TD&gt;data source&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12345&lt;/TD&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;electrical&lt;/TD&gt;&lt;TD&gt;1/1/2025&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;Building&lt;/TD&gt;&lt;TD&gt;actual&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12345&lt;/TD&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;electrical&lt;/TD&gt;&lt;TD&gt;1/1/2025&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;Building&lt;/TD&gt;&lt;TD&gt;planned&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12345&lt;/TD&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;electrical&lt;/TD&gt;&lt;TD&gt;1/1/2025&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;Room&lt;/TD&gt;&lt;TD&gt;actual&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12345&lt;/TD&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;electrical&lt;/TD&gt;&lt;TD&gt;1/1/2025&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;Room&lt;/TD&gt;&lt;TD&gt;planned&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get the report in this format ...using Matrix Visual. Need help with calculating the Variance as shown below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 01:48:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-with-Matrix-Visual-Variance-calc/m-p/4713103#M180511</guid>
      <dc:creator>komaragiri</dc:creator>
      <dc:date>2025-05-30T01:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Matrix Visual - Variance calc</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-with-Matrix-Visual-Variance-calc/m-p/4713112#M180513</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="710207" data-lia-user-login="komaragiri" class="lia-mention lia-mention-user"&gt;komaragiri&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;To achieve this matrix, we will create 3 measures. I've replicated your data in my environment.&lt;BR /&gt;&lt;BR /&gt;First we will create a measure for Planned using the following DAX:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Planned = 
CALCULATE(
    SUM(TestData[Hours]),
    TestData[data source] = "planned"
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Then we will create a measure for Actual using the following DAX:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Actual = 
CALCULATE(
    SUM(TestData[Hours]),
    TestData[data source] = "actual"
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Finally we will create a third measure that calculates the variance between them using the following DAX:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Variance = 
[Planned] - [Actual]&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Once the meaures are created, we can leverage them in a Matrix like so:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this helped, please mark it as the solution so others can benefit too. And if you found it useful, kudos are always appreciated.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Samson&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 02:13:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-with-Matrix-Visual-Variance-calc/m-p/4713112#M180513</guid>
      <dc:creator>SamsonTruong</dc:creator>
      <dc:date>2025-05-30T02:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Matrix Visual - Variance calc</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-with-Matrix-Visual-Variance-calc/m-p/4713119#M180515</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="927426" data-lia-user-login="SamsonTruong" class="lia-mention lia-mention-user"&gt;SamsonTruong&lt;/a&gt;&amp;nbsp; Thanks for your suggestion. Worked. Kudos to you for helping&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 02:20:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-with-Matrix-Visual-Variance-calc/m-p/4713119#M180515</guid>
      <dc:creator>komaragiri</dc:creator>
      <dc:date>2025-05-30T02:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Matrix Visual - Variance calc</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-with-Matrix-Visual-Variance-calc/m-p/4713181#M180521</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="710207" data-lia-user-login="komaragiri" class="lia-mention lia-mention-user"&gt;komaragiri&lt;/a&gt;&amp;nbsp;Happy to hear the solution worked!&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 03:21:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-with-Matrix-Visual-Variance-calc/m-p/4713181#M180521</guid>
      <dc:creator>SamsonTruong</dc:creator>
      <dc:date>2025-05-30T03:21:57Z</dc:date>
    </item>
  </channel>
</rss>

