<?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: How to create measure to calculate Expenses per Staff Month? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3330269#M124784</link>
    <description>&lt;P&gt;Thanks Aniya.&lt;/P&gt;&lt;P&gt;Will need your help to include Version filter. In my mock-up, I will like that to be flexi. I.e. Could be "Final Plan", "Final Actual", "Final BTG".&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;</description>
    <pubDate>Fri, 14 Jul 2023 00:57:33 GMT</pubDate>
    <dc:creator>seahsteph</dc:creator>
    <dc:date>2023-07-14T00:57:33Z</dc:date>
    <item>
      <title>How to create measure to calculate Expenses per Staff Month?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3321220#M124306</link>
      <description>&lt;P&gt;I like to create a measure to calculate Expenses per Staff Month. Example: T&amp;amp;E divided by Staff Months. Morale divided by Staff Months.&amp;nbsp;&lt;/P&gt;&lt;P&gt;T&amp;amp;E, Morale and Staff Months are under "Expense Category" column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Their corresponding values are under "Value" column.&lt;/P&gt;&lt;P&gt;There are other slicer included such as Budget Owner, Version, Quarter.&lt;/P&gt;&lt;P&gt;Can someone enlighten me on how to create the formula pls?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Excel, it will be a straightforward "=SUMIFS([Value],[Budget Owner],cell A1,[Version],cell B1,[Quarter],cell C2,[Expense Category],cell A2) / SUMIFS([Value],[Budget Owner],cell A1,[Version],cell B1,[Quarter],cell C2,[Expense Category],"Staff Month")&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;</description>
      <pubDate>Sat, 08 Jul 2023 06:16:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3321220#M124306</guid>
      <dc:creator>seahsteph</dc:creator>
      <dc:date>2023-07-08T06:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure to calculate Expenses per Staff Month?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3322221#M124379</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="586204" data-lia-user-login="seahsteph" class="lia-mention lia-mention-user"&gt;seahsteph&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, you want to get the "&lt;SPAN&gt;&amp;nbsp;Expenses per Staff Month. Example: T&amp;amp;E divided by Staff Months&lt;/SPAN&gt;".&lt;/P&gt;
&lt;P&gt;I have no sample data as yours, you can try to use this dax code to try if it can meet your need:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = DIVIDE(
        SUM('Table'[Value]),
        CALCULATE( SUM('Table'[Value]), 'Table'[Expense Category] = "Staff Month")   
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this method does not meet your needs, you can provide us with your special &lt;STRONG&gt;sample data&lt;/STRONG&gt; and the &lt;STRONG&gt;desired output sample&lt;/STRONG&gt; data in the form of &lt;STRONG&gt;tables&lt;/STRONG&gt;, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 01:36:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3322221#M124379</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-07-10T01:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure to calculate Expenses per Staff Month?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3323501#M124435</link>
      <description>&lt;P&gt;Hi Aniya,&lt;/P&gt;&lt;P&gt;I tried the DAX code and it didn't work. Can't seem to pick up the Numerator correctly. Also tried using SUMX but failed.&lt;/P&gt;&lt;P&gt;I'm attaching here the sample data, and desired output sample. Please take a look and let me know how I can adjust the DAX code to correctly calculate "Expenses per Staff Month". Example: T&amp;amp;E divided by Staff Month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://microsoft-my.sharepoint.com/:u:/g/personal/stseah_linkedin_biz/IQDa3jemGKrfQpUfmco4CFonAeL76N2KFjOZJ2KkPSnB8_s?e=w8yaex" target="_self"&gt;Link to sample data, and desired output sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AmjAiG0alI3mmBujWvJJU8RH69cN?e=gwASCa" target="_self"&gt;Secondary link (in case the above doesn't work)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 15:27:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3323501#M124435</guid>
      <dc:creator>seahsteph</dc:creator>
      <dc:date>2023-07-10T15:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure to calculate Expenses per Staff Month?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3324196#M124470</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="586204" data-lia-user-login="seahsteph" class="lia-mention lia-mention-user"&gt;seahsteph&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick reponse and your sample pbix and the end result !&lt;/P&gt;
&lt;P&gt;For your need , you need to create two matrix measure and you want to get the right total in the visual.&lt;/P&gt;
&lt;P&gt;We can create this measures:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Staff Sum of Value = CALCULATE( SUM(REPORT_QTR[Value]) , 'REPORT_QTR'[Top Expense Category]="Staff Month")&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Staff Measure($/SM)-Right Total = SUMX( ADDCOLUMNS( CROSSJOIN({MAX('REPORT_QTR'[Top Expense Category])}, SUMMARIZE('REPORT_QTR','REPORT_QTR'[Version],'REPORT_QTR'[Qtr])) , "v" , [Staff Measure($/SM)]) , [v])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Staff Measure($/SM) = DIVIDE( CALCULATE( SUM(REPORT_QTR[Value]) , 'REPORT_QTR'[Top Expense Category]="Staff Month") , CALCULATE( SUM(REPORT_QTR[Value]) , 'REPORT_QTR'[Top Expense Category]="Staff Month"))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Above Measure = var _t = ADDCOLUMNS(CROSSJOIN( {"Staff Month"}, SUMMARIZE('REPORT_QTR','REPORT_QTR'[Version],'REPORT_QTR'[Qtr])), "v" , CALCULATE( SUM('REPORT_QTR'[Value]),'REPORT_QTR'[Controllable]="Controllable_Feon",TREATAS({[Value]},'REPORT_QTR'[Top Expense Category]) ,ALLSELECTED('REPORT_QTR') ))
return
DIVIDE( SUM(REPORT_QTR[Value]),SUMX(_t , [v]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Above Measure -Right Total = SUMX( ADDCOLUMNS( CROSSJOIN(VALUES('REPORT_QTR'[Top Expense Category]), SUMMARIZE('REPORT_QTR','REPORT_QTR'[Version],REPORT_QTR[Qtr])) , "v" , [Above Measure]) , [v])

&lt;/LI-CODE&gt;
&lt;P&gt;Then we can put this measures on the visual and we can get the result as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 02:23:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3324196#M124470</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-07-11T02:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure to calculate Expenses per Staff Month?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3328638#M124675</link>
      <description>&lt;P&gt;Hi Aniya,&lt;/P&gt;&lt;P&gt;I just realised the Expenses per Staff Month ("Above Measure-Right Total") does not show up correctly in the TOTAL column.&lt;/P&gt;&lt;P&gt;It shows a Sum across Quarters. Instead of Full Year Total Expense / Full Year Total Staff Months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g. FY T&amp;amp;E / Staff month is currently &lt;STRONG&gt;$1,424&lt;/STRONG&gt; (sum across quarters).&lt;/P&gt;&lt;P&gt;But it should be &lt;STRONG&gt;$355&lt;/STRONG&gt; (Total T&amp;amp;E $104,004 / Total Staff Months 293 = $355).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you advise if the DAX code should be adjusted? Or is there a way to adjust TOTAL column to an Average across Quarters instead of Sum across Quarters.&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;</description>
      <pubDate>Thu, 13 Jul 2023 06:07:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3328638#M124675</guid>
      <dc:creator>seahsteph</dc:creator>
      <dc:date>2023-07-13T06:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure to calculate Expenses per Staff Month?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3328704#M124677</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="586204" data-lia-user-login="seahsteph" class="lia-mention lia-mention-user"&gt;seahsteph&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick response!&lt;/P&gt;
&lt;P&gt;You can try to modify the measure to this and we do not need to use the [Abouve Measure-Right Total]:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Abouve -2 = IF( HASONEVALUE('REPORT_QTR'[Qtr])  ,[Above Measure] ,DIVIDE( SUM('REPORT_QTR'[Value]) , CALCULATE( SUM(REPORT_QTR[Value]) , 'REPORT_QTR'[Top Expense Category]="Staff Month", 'REPORT_QTR'[Controllable]="Controllable_Feon", ALLSELECTED('REPORT_QTR'))))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then we can get the result:&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;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 06:44:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3328704#M124677</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-07-13T06:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure to calculate Expenses per Staff Month?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3328823#M124682</link>
      <description>&lt;P&gt;Do you have any issues with Column showing "Version" and "Qtr"?&lt;/P&gt;&lt;P&gt;See below snapshot... T&amp;amp;E $/Staff Month gets to &lt;STRONG&gt;$177&lt;/STRONG&gt; (instead of $355).&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;</description>
      <pubDate>Thu, 13 Jul 2023 07:36:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3328823#M124682</guid>
      <dc:creator>seahsteph</dc:creator>
      <dc:date>2023-07-13T07:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure to calculate Expenses per Staff Month?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3328831#M124684</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="586204" data-lia-user-login="seahsteph" class="lia-mention lia-mention-user"&gt;seahsteph&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick response!In your screen , it seems you clear the version fitler.&lt;/P&gt;
&lt;P&gt;Can you try to use this dax code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Abouve -2 = IF( HASONEVALUE('REPORT_QTR'[Qtr])  ,[Above Measure] ,DIVIDE( SUM('REPORT_QTR'[Value]) , CALCULATE( SUM(REPORT_QTR[Value]) , 'REPORT_QTR'[Top Expense Category]="Staff Month", 'REPORT_QTR'[Controllable]="Controllable_Feon",'REPORT_QTR'[Version]="Final Plan", ALLSELECTED('REPORT_QTR'))))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 07:47:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3328831#M124684</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-07-13T07:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure to calculate Expenses per Staff Month?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3330269#M124784</link>
      <description>&lt;P&gt;Thanks Aniya.&lt;/P&gt;&lt;P&gt;Will need your help to include Version filter. In my mock-up, I will like that to be flexi. I.e. Could be "Final Plan", "Final Actual", "Final BTG".&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;</description>
      <pubDate>Fri, 14 Jul 2023 00:57:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3330269#M124784</guid>
      <dc:creator>seahsteph</dc:creator>
      <dc:date>2023-07-14T00:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure to calculate Expenses per Staff Month?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3330813#M124812</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="586204" data-lia-user-login="seahsteph" class="lia-mention lia-mention-user"&gt;seahsteph&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick response!&lt;/P&gt;
&lt;P&gt;And for your pbix file , it seems in the start you use the "Filter on this visual" for the [Version] fields.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;And you want to filter the [Version] , i recommend you to use the slicer instead of the "Filter on this visual".&lt;/P&gt;
&lt;P&gt;For this , it can not be get in dax.&lt;/P&gt;
&lt;P&gt;So you need to clear the [Version] filter in it .&lt;/P&gt;
&lt;P&gt;And then you can try to update the [Above-2] measure to test it may work?:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Abouve -2 = IF( HASONEVALUE('REPORT_QTR'[Qtr]) ,[Above Measure] ,DIVIDE( SUM('REPORT_QTR'[Value]) , CALCULATE( SUM(REPORT_QTR[Value]) , 'REPORT_QTR'[Top Expense Category]="Staff Month", 'REPORT_QTR'[Controllable]="Controllable_Feon",'REPORT_QTR'[Version]=MAX('REPORT_QTR'[Version]), ALLSELECTED('REPORT_QTR'))))&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;And filter [Version] here, your value has not changed a lot, Staff month is always 293-295, and the value of visual above is also very similar. &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Maybe I misunderstood what you meant? &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;If this still doesn't solve your problem, can you describe your current data and your desired end result in detail, and resend me a pbix to me to test ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;EM&gt; it as the solution&amp;nbsp;to help the other members find it more quickly&lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 07:15:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-to-calculate-Expenses-per-Staff-Month/m-p/3330813#M124812</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-07-14T07:15:39Z</dc:date>
    </item>
  </channel>
</rss>

