<?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: Always execute measure on daily resolution in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4771339#M182736</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;thanks, it works.&lt;BR /&gt;&lt;BR /&gt;But it's quite sensitive and I don't really know why.&lt;BR /&gt;I added a few lines from a adjusted measure. This does not work.&lt;BR /&gt;All I did was, changing the substraction within the SUM(x) by doing it befor within a Variable defintion.&lt;BR /&gt;How come this does not work anymore?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Loss Limitation = 

VAR  vDiff = [PR excluding Limitation] - [PR Limitation]    RETURN

Sumx(
    SUMMARIZE( 'RawData Asset', 'Calendar'[Month]),
    CALCULATE(sum('RawData Asset'[POA Limitation])) * vDiff &lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jul 2025 19:03:41 GMT</pubDate>
    <dc:creator>Mangnuel</dc:creator>
    <dc:date>2025-07-21T19:03:41Z</dc:date>
    <item>
      <title>Always execute measure on daily resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4769350#M182658</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;PowerBi World, i need your help.&lt;BR /&gt;Struggling with the correct calculations while switching between daily and monthly resolution or including more then one month into the report.&lt;BR /&gt;Attached is a link to google drive,&amp;nbsp;included is the PowerBi file with the current results and an Excel-Sheet with the raw data and the wanted result. Within excel I can set up a table an a few formulars witch generate the desired results.&lt;BR /&gt;PowerBI is challenging, I managed to create a measure which is calculating the Loss during the time of limitation.&lt;BR /&gt;But this is only correct, if I filter for one month and the table is on daily resolution.&lt;BR /&gt;If I change the report and it does cover more than one month, the measures don't really work.&amp;nbsp;&lt;BR /&gt;It's summing up all the needed inputs on monthly totals, but I need the sum of the daily calculation.&lt;BR /&gt;&lt;BR /&gt;If you change the date to monthly basis, the result for the row subtotals are not the wanted result.&lt;BR /&gt;Hope the excel file does highlight the way, how I would like to calculate the final values.&lt;BR /&gt;&lt;BR /&gt;I am happy to replay to all of your questions.&lt;BR /&gt;&lt;A title="Link to the files" href="https://drive.google.com/drive/folders/1cREWHeYnoXrbzPAhkAfI4LN3pih5ieSB?usp=sharing" target="_self"&gt;https://drive.google.com/drive/folders/1cREWHeYnoXrbzPAhkAfI4LN3pih5ieSB?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jul 2025 23:19:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4769350#M182658</guid>
      <dc:creator>Mangnuel</dc:creator>
      <dc:date>2025-07-19T23:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Always execute measure on daily resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4769410#M182661</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please try something like below if it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Loss Limitation =
SUMX (
    SUMMARIZE ( 'RawData Asset', 'Calendar'[Month] ),
    CALCULATE ( SUM ( 'RawData Asset'[POA Limitation] ) ) * ( [PR excluding Limitation] - [PR Limitation] )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 20 Jul 2025 04:24:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4769410#M182661</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-07-20T04:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Always execute measure on daily resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4769591#M182665</link>
      <description>&lt;P&gt;If you want this on daily level you need to calculate the formula separately for each day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PR Limitation = 
SUMX(VALUES('Calendar'[Date]),CALCULATE(divide(sum('RawData Asset'[Yield Limitation]),sum('RawData Asset'[POA Limitation]))))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note:&amp;nbsp; No need for multiple RETURN statements in your scenario.&lt;/P&gt;
&lt;P&gt;Note:&amp;nbsp; The data model relationship should not be bidirectional.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jul 2025 13:01:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4769591#M182665</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-07-20T13:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Always execute measure on daily resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4771339#M182736</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;thanks, it works.&lt;BR /&gt;&lt;BR /&gt;But it's quite sensitive and I don't really know why.&lt;BR /&gt;I added a few lines from a adjusted measure. This does not work.&lt;BR /&gt;All I did was, changing the substraction within the SUM(x) by doing it befor within a Variable defintion.&lt;BR /&gt;How come this does not work anymore?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Loss Limitation = 

VAR  vDiff = [PR excluding Limitation] - [PR Limitation]    RETURN

Sumx(
    SUMMARIZE( 'RawData Asset', 'Calendar'[Month]),
    CALCULATE(sum('RawData Asset'[POA Limitation])) * vDiff &lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 19:03:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4771339#M182736</guid>
      <dc:creator>Mangnuel</dc:creator>
      <dc:date>2025-07-21T19:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Always execute measure on daily resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4771350#M182737</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I adjusted my measures, now I have different Measure for the PR Limitation and included it into the loss Calculation.&lt;BR /&gt;But I doesn't work,...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PR Limitation 2 = 

sumx(
    Values('Calendar'[Date]),
    CALCULATE(DIVIDE(sum('RawData Asset'[Yield Limitation]), sum('RawData Asset'[POA Limitation]))
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Loss Limitation classic = 

VAR         vDiff           = [PR excluding Limitation] - [PR Limitation 2]           RETURN
vDiff * sum('RawData Asset'[POA Limitation])&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 21 Jul 2025 19:19:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4771350#M182737</guid>
      <dc:creator>Mangnuel</dc:creator>
      <dc:date>2025-07-21T19:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Always execute measure on daily resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4771549#M182743</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your message, and please check the link down below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-&amp;gt;&amp;nbsp;&lt;SPAN&gt;Once resultant values have been calculated for a &lt;STRONG&gt;variable expression&lt;/STRONG&gt;, those values do not change, even if the variable is referenced in another expression.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/var-dax?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;VAR keyword (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 03:21:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4771549#M182743</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-07-22T03:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Always execute measure on daily resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4781472#M183100</link>
      <description>&lt;P&gt;Hello again,&lt;BR /&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I am having problems with this measure.&lt;BR /&gt;It is perfectly working, but not if the loss calculation is negative.&lt;BR /&gt;&lt;BR /&gt;Such days are possible, let's over right such result to zero or leave them blank.&lt;BR /&gt;Changing the daily result is not a problem, but the monthly result is doing the sum of all daily values (including the negative daily result). Files on the google drive are updated. I did set up an easy example in March, one day with a positive and one day with a negative loss.&lt;BR /&gt;&lt;BR /&gt;Can we somehow adjust the measure, so negative results are not included for daily/monthly or yearly views.&lt;BR /&gt;Or do the corrections within a separate measure?&lt;BR /&gt;Many thanks for the input, I am happy to answer upcoming questions.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://drive.google.com/drive/folders/1cREWHeYnoXrbzPAhkAfI4LN3pih5ieSB?usp=drive_link" target="_self"&gt;https://drive.google.com/drive/folders/1cREWHeYnoXrbzPAhkAfI4LN3pih5ieSB?usp=drive_link&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 13:35:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4781472#M183100</guid>
      <dc:creator>Mangnuel</dc:creator>
      <dc:date>2025-07-30T13:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Always execute measure on daily resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4782078#M183117</link>
      <description>&lt;P&gt;Hi, I am not sure if I understood your question, but please show and picture how you want to see the result and that might help to understand your expected outcome correctly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 02:27:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4782078#M183117</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-07-31T02:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Always execute measure on daily resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4782484#M183126</link>
      <description>&lt;P&gt;Yes, I'll try&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;.&lt;BR /&gt;&lt;BR /&gt;the files on google drive also show the problem.&lt;BR /&gt;I added a few words within the report.&lt;BR /&gt;And here is a picture of the current result.&lt;BR /&gt;Positive and Negative results are ending up in the monthly sum.&lt;BR /&gt;The result is 2.13 instead of 2.53 for march.&lt;BR /&gt;Hope that helps? Raphael&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;currently using this measure to calculate the loss,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Loss Limitation = 

VAR vhelp =
SUMX (
    SUMMARIZE ( 'RawData Asset', 'Calendar'[Month] ),
    CALCULATE ( SUM ( 'RawData Asset'[POA Limitation] ) ) * ( [PR excluding Limitation] - [PR Limitation] )
)

RETURN

vhelp

//if(vhelp &amp;lt;= 0 , blank(), vhelp)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;if-clause at the end is not giving the wanted result, daily values are ok, but monthly or yearly sums are showing wrong results. In case the result of&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;[PR excluding Limitation]&lt;/SPAN&gt;&lt;SPAN&gt; - &lt;/SPAN&gt;&lt;SPAN&gt;[PR Limitation]&lt;/SPAN&gt;&lt;SPAN&gt; ) is negative, this shut not be used for the calculation.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 07:10:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4782484#M183126</guid>
      <dc:creator>Mangnuel</dc:creator>
      <dc:date>2025-07-31T07:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Always execute measure on daily resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4783687#M183163</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for the explanation.&lt;/P&gt;
&lt;P&gt;Because I do not fully understand the logic of each measure in the Power BI report, the performance of the newly-written-measure might be slow if the real dataset's size is huge, but for now, please check the attached pbix file.&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>Fri, 01 Aug 2025 02:59:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4783687#M183163</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-08-01T02:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Always execute measure on daily resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4787857#M183310</link>
      <description>&lt;P&gt;works very well,&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp; thanks a lot&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 12:20:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Always-execute-measure-on-daily-resolution/m-p/4787857#M183310</guid>
      <dc:creator>Mangnuel</dc:creator>
      <dc:date>2025-08-05T12:20:26Z</dc:date>
    </item>
  </channel>
</rss>

