<?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: YoY Variance in Matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Variance-in-Matrix/m-p/3588394#M138510</link>
    <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Depending on the information you provide, you can use column subtraction to achieve one column minus another.&lt;/P&gt;
&lt;P&gt;You can provide some non-private detail data or pbix files and state what you want to achieve that I can help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.fabric.microsoft.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-yifanw%40microsoft.com%7C251ec53f215c4fd21f1f08dbff761f09%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638384655060834868%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=U9eWwfn5DpZFzhbVjPlLYffMr6VdnPV4X0sy5ahJOm0%3D&amp;amp;reserved=0" target="_blank"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired out put and pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Best Regards,&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Yifan Wang&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SUP&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 08:30:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-12-18T08:30:59Z</dc:date>
    <item>
      <title>YoY Variance in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Variance-in-Matrix/m-p/3584603#M138294</link>
      <description>&lt;P&gt;I've tried a lot here and can't seem to get anything to work.&amp;nbsp; I basically have a list of agents and their total sales by year... I would like a simple variance column at the end of the matrix that lists the name of the agent, their total sales in each year the given closed months (for example if they choose January through November, it would be the sales in each year for those months).&amp;nbsp; &amp;nbsp;All good with that, but I can't a simple variance (IE subtracting one column from the other)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;None of the solutions i'm seeing seem to be working.&amp;nbsp; &amp;nbsp;Would I need to create another table in order to get the visual to work, and what DAX would I need?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 20:28:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Variance-in-Matrix/m-p/3584603#M138294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-14T20:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: YoY Variance in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Variance-in-Matrix/m-p/3588394#M138510</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Depending on the information you provide, you can use column subtraction to achieve one column minus another.&lt;/P&gt;
&lt;P&gt;You can provide some non-private detail data or pbix files and state what you want to achieve that I can help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.fabric.microsoft.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-yifanw%40microsoft.com%7C251ec53f215c4fd21f1f08dbff761f09%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638384655060834868%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=U9eWwfn5DpZFzhbVjPlLYffMr6VdnPV4X0sy5ahJOm0%3D&amp;amp;reserved=0" target="_blank"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired out put and pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Best Regards,&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Yifan Wang&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SUP&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 08:30:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Variance-in-Matrix/m-p/3588394#M138510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-18T08:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: YoY Variance in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Variance-in-Matrix/m-p/3589218#M138544</link>
      <description>&lt;P&gt;Thanks...here is&amp;nbsp; a look at the style of visual I want to have, where the 'Delta' column would be a subraction of 2023 over 2022.&amp;nbsp; &amp;nbsp;I have dates both in the source table and a calendar table.&amp;nbsp; &amp;nbsp;The Years come from a 'Year' column that I created by extracting from the date.&amp;nbsp; &amp;nbsp;The numbers are sum of sales in those years.&amp;nbsp; The agent names come from the same table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This Year = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Query1[count]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Year]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Year]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and a similar one for prior year, and then a variance to subtract This Year - Last Year but it doens't seem to work&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;TD&gt;Delta&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Agent A&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Agent B&lt;/TD&gt;&lt;TD&gt;31&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Agent C&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Agent D&lt;/TD&gt;&lt;TD&gt;29&lt;/TD&gt;&lt;TD&gt;37&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 18 Dec 2023 15:00:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YoY-Variance-in-Matrix/m-p/3589218#M138544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-18T15:00:21Z</dc:date>
    </item>
  </channel>
</rss>

