<?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 measure need for matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3266381#M120932</link>
    <description>&lt;P&gt;&amp;nbsp;Hello Tang&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good Day!&lt;/P&gt;&lt;P&gt;Did you receive the link to my sample.pbix sent to you via a private message?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2023 21:19:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-02T21:19:28Z</dc:date>
    <item>
      <title>Dax measure need for matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3251842#M120002</link>
      <description>&lt;P&gt;PBI Community Good!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;U&gt;What I'm trying to accomplish&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;Need measures for the sources in my matrix in the screen shots below&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;U&gt;I have a sample data set to forward if needed please advise.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Per the schedule below,&lt;/P&gt;&lt;P class=""&gt;the &lt;U&gt;current measure are just place holder&lt;/U&gt; to show how I want them displayed in the matrix&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciate your time!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 19:29:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3251842#M120002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T19:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure need for matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3254271#M120136</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create measures.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Open Forecast = CALCULATE(SUM('Table'[revenue_amount_usd]),FILTER(ALLSELECTED('Table'),'Table'[product_minor]=MAX('Table'[product_minor]) &amp;amp;&amp;amp; 'Table'[source]="Open Forecast"))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Open Plan = CALCULATE(SUM('Table'[revenue_amount_usd]),FILTER(ALLSELECTED('Table'),'Table'[product_minor]=MAX('Table'[product_minor]) &amp;amp;&amp;amp; 'Table'[source]="Open Plan"))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(3) Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Or&amp;nbsp;&amp;nbsp;we can create measures.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_a = SWITCH(TRUE(),
MAX('Table'[source])="Open Forecast",CALCULATE(SUM('Table'[revenue_amount_usd]),FILTER(ALLSELECTED('Table'),'Table'[product_minor]=MAX('Table'[product_minor]) &amp;amp;&amp;amp; 'Table'[source]="Open Forecast")),
MAX('Table'[source])="Open Plan",CALCULATE(SUM('Table'[revenue_amount_usd]),FILTER(ALLSELECTED('Table'),'Table'[product_minor]=MAX('Table'[product_minor]) &amp;amp;&amp;amp; 'Table'[source]="Open Plan")))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Value = 

SUMX(

    SUMMARIZE(

        'Table',

        'Table'[product_minor],
        'Table'[source],


        "total",'Table'[_a]
    ),

    [total]

)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 03:20:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3254271#M120136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-26T03:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure need for matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3255872#M120240</link>
      <description>&lt;P&gt;Hello Neeko Tang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per your example, I working on it now, but I'm getting an error message in the Dax.&lt;/P&gt;&lt;P&gt;How did you upload your sample .pbix?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sample .pbix I can upload the same way for your review.&lt;/P&gt;&lt;P&gt;Please advise&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 18:49:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3255872#M120240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-26T18:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure need for matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3257056#M120314</link>
      <description>&lt;P&gt;Hello Neeko Tang&lt;/P&gt;&lt;P&gt;I have questions per the following:&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;View B&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I got the Dax to work, but my totals for all product are incorrect .&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;Not sure if I understood the reason for the =Max in the Dax Measure - Open Forecast 1 circled in red.&lt;/LI&gt;&lt;LI&gt;My cards for Open Forecast and Open Plan are showing the max value for Product 3 and not the totals. Also the totals match the max values.&lt;/LI&gt;&lt;LI&gt;All the numbers are the same for each year and category in the Matrix underlined in red.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visualizations details for Matrix &amp;lt;&amp;lt;&amp;lt;View A&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Much appreciate your time&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 00:57:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3257056#M120314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-29T00:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure need for matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3257608#M120350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can create measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Open Plan = 
CALCULATE(SUM('Table'[revenue_amount_usd]),FILTER(ALLSELECTED('Table'),'Table'[product_minor]=SELECTEDVALUE('Table'[product_minor]) &amp;amp;&amp;amp; 'Table'[source]="Open Plan" &amp;amp;&amp;amp; 'Table'[date]=SELECTEDVALUE('Table'[date])))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Open Forecast = 
 CALCULATE(SUM('Table'[revenue_amount_usd]),FILTER(ALLSELECTED('Table'),'Table'[product_minor]=SELECTEDVALUE('Table'[product_minor]) &amp;amp;&amp;amp; 'Table'[source]="Open Forecast" &amp;amp;&amp;amp; 'Table'[date]=SELECTEDVALUE('Table'[date])))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;total open forecast = SUMX(

    SUMMARIZE(

        'Table',

        'Table'[product_minor],
       'Table'[date],


        "total",'Table'[Open Forecast]
    ),

    [total]

)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;total open plan = SUMX(

    SUMMARIZE(

        'Table',

        'Table'[product_minor],
       'Table'[date],


        "total",'Table'[Open Plan]
    ),

    [total]

)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;Refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C01%7Cv-jianboli%40microsoft.com%7Ca7ce12be0f454896a61208da8034281b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637963258750159993%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=orVyE0%2FImc2MEFUqXtCveK0uf33594f67ZDxb8ybuNI%3D&amp;amp;reserved=0" target="_blank"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C01%7Cv-jianboli%40microsoft.com%7Ca7ce12be0f454896a61208da8034281b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637963258750159993%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=XocTq9o6TjxbxJqTak20E3kKp7q5HxKTNZef7xESMV0%3D&amp;amp;reserved=0" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 07:53:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3257608#M120350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-29T07:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure need for matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3259884#M120507</link>
      <description>&lt;P&gt;Hello Tang&lt;/P&gt;&lt;P&gt;I sent you a private message with an sample.pbix.&lt;/P&gt;&lt;P&gt;I will take a look at your post above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciate your time!&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 14:39:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3259884#M120507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-30T14:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure need for matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3266381#M120932</link>
      <description>&lt;P&gt;&amp;nbsp;Hello Tang&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good Day!&lt;/P&gt;&lt;P&gt;Did you receive the link to my sample.pbix sent to you via a private message?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 21:19:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3266381#M120932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-02T21:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure need for matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3266790#M120953</link>
      <description>&lt;P&gt;Hello Tang&lt;/P&gt;&lt;P&gt;Per your solution above, I got the measure to work.&lt;/P&gt;&lt;P&gt;Much appreciate your time and help!&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2023 17:14:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-need-for-matrix/m-p/3266790#M120953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-03T17:14:13Z</dc:date>
    </item>
  </channel>
</rss>

