<?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: Can I optimize calling same column in different measures? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-optimize-calling-same-column-in-different-measures/m-p/1354399#M24434</link>
    <description>&lt;P&gt;Thank you, I will look at it. Yes I am in DirectQuery mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you think Calculation groups can (significantly?) improve performances?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2020 09:56:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-09-08T09:56:34Z</dc:date>
    <item>
      <title>Can I optimize calling same column in different measures?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-optimize-calling-same-column-in-different-measures/m-p/1351986#M24375</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Matrix that is displaying multiple versions of the same column.&lt;/P&gt;&lt;P&gt;- Stock&lt;/P&gt;&lt;P&gt;- Stock vs LY&lt;/P&gt;&lt;P&gt;- Stock vs LY % = DIVIDE(Stock, Stock vs LY) -1&lt;/P&gt;&lt;P&gt;The problem is that displaying Stock is not this fast so calling it three times is too long.&lt;/P&gt;&lt;P&gt;Is it possible to optimize this by creating a measure to retrieve Stock and Stock vs LY to calculate Stock vs LY % (without a server request)?&lt;/P&gt;&lt;P&gt;Or any other way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 12:41:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-optimize-calling-same-column-in-different-measures/m-p/1351986#M24375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-07T12:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can I optimize calling same column in different measures?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-optimize-calling-same-column-in-different-measures/m-p/1352075#M24376</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , can you share the formula of&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Stock&lt;/P&gt;
&lt;P&gt;- Stock vs LY&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 13:10:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-optimize-calling-same-column-in-different-measures/m-p/1352075#M24376</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-07T13:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can I optimize calling same column in different measures?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-optimize-calling-same-column-in-different-measures/m-p/1352089#M24377</link>
      <description>&lt;P&gt;Stock is a column from my database so I do not think it has a formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Stock vs LY =
CALCULATE( 'Stock'[Stock], SAMEPERIODLASTYEAR( 'Date'[Date] ) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 13:18:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-optimize-calling-same-column-in-different-measures/m-p/1352089#M24377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-07T13:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can I optimize calling same column in different measures?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-optimize-calling-same-column-in-different-measures/m-p/1352159#M24382</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , so this is basically complete data and year fewer data. Try this year vs last year that will reduce the data .&lt;/P&gt;
&lt;P&gt;Also, I am assuming it is a measure like (not measure)&lt;/P&gt;
&lt;P&gt;Stock vs LY =&lt;BR /&gt;CALCULATE( sum('Stock'[Stock]), SAMEPERIODLASTYEAR( 'Date'[Date] ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Examples -measure&lt;/P&gt;
&lt;P&gt;YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))&lt;BR /&gt;Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))&lt;BR /&gt;This year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR('Date'[Date]),"12/31"))&lt;BR /&gt;Last year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))&lt;BR /&gt;Last to last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-2,Year),"12/31"))&lt;BR /&gt;Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))&lt;BR /&gt;//Only year vs Year, not a level below&lt;/P&gt;
&lt;P&gt;This Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))&lt;BR /&gt;Last Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have bi-directional joins. Try to reduce them&lt;/P&gt;
&lt;P&gt;refer if these can help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/guidance/power-bi-optimization" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/guidance/power-bi-optimization&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/MBAS-Gallery/Microsoft-Power-BI-My-Power-BI-report-is-slow-What-should-I-do/td-p/712567" target="_blank"&gt;https://community.powerbi.com/t5/MBAS-Gallery/Microsoft-Power-BI-My-Power-BI-report-is-slow-What-should-I-do/td-p/712567&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.knowledgehut.com/blog/business-intelligence-and-visualization/power-bi-best-practices" target="_blank"&gt;https://www.knowledgehut.com/blog/business-intelligence-and-visualization/power-bi-best-practices&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/MBAS-Gallery/Microsoft-Power-BI-The-Do-s-and-Don-ts-of-Power-BI-Relationships/td-p/712566" target="_blank"&gt;https://community.powerbi.com/t5/MBAS-Gallery/Microsoft-Power-BI-The-Do-s-and-Don-ts-of-Power-BI-Relationships/td-p/712566&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 13:56:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-optimize-calling-same-column-in-different-measures/m-p/1352159#M24382</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-07T13:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can I optimize calling same column in different measures?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-optimize-calling-same-column-in-different-measures/m-p/1352591#M24391</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;- Is this a Direct Query situation? If so, you can speed things up and avoid round trips to your database by using Aggregation Tables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-aggregations" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-aggregations&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 18:33:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-optimize-calling-same-column-in-different-measures/m-p/1352591#M24391</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-07T18:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can I optimize calling same column in different measures?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-optimize-calling-same-column-in-different-measures/m-p/1354399#M24434</link>
      <description>&lt;P&gt;Thank you, I will look at it. Yes I am in DirectQuery mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you think Calculation groups can (significantly?) improve performances?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 09:56:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-optimize-calling-same-column-in-different-measures/m-p/1354399#M24434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-08T09:56:34Z</dc:date>
    </item>
  </channel>
</rss>

