<?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: All Referencing a measure in another measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Referencing-a-measure-in-another-measure/m-p/2101323#M47960</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Theoretically but would need more information. You could use something like CALCULATE([Measure],ALL('Table')) for example.&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Sep 2021 21:47:10 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2021-09-27T21:47:10Z</dc:date>
    <item>
      <title>All Referencing a measure in another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Referencing-a-measure-in-another-measure/m-p/2101279#M47956</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can use ALL or other dax formula to apply a page filter only in the first 2 columns but exclude it from the last 2 columns which are measures (QTDs)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 21:17:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Referencing-a-measure-in-another-measure/m-p/2101279#M47956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-27T21:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: All Referencing a measure in another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Referencing-a-measure-in-another-measure/m-p/2101323#M47960</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Theoretically but would need more information. You could use something like CALCULATE([Measure],ALL('Table')) for example.&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 21:47:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Referencing-a-measure-in-another-measure/m-p/2101323#M47960</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-09-27T21:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: All Referencing a measure in another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Referencing-a-measure-in-another-measure/m-p/2101346#M47963</link>
      <description>&lt;P&gt;This is a sample of what I have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q2 QTD =&lt;BR /&gt;VAR W14 = CALCULATE(SUM(Query[Revenue]),Query[Fiscal Week]="2021-W14")&lt;BR /&gt;VAR W15 = CALCULATE(SUM(Query[Revenue]),Query[Fiscal Week]="2021-W15")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Var Result = W14+W15&lt;BR /&gt;Return&lt;BR /&gt;IF(ISBLANK(Result),0,Result)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------------------&lt;/P&gt;&lt;P&gt;Lets say that W14= 3&amp;nbsp; and W15 = 5. I would like to receive 8.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I have a page filter of "Fiscal Week" to show specifics one. If I filter by WK 15, WK 16, WK 17 for example. then I will only receive in &lt;EM&gt;Q2 QTD&lt;/EM&gt;&amp;nbsp; the result of 5 instead of 8.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I will like to apply the page filter "Fiscal Week" to the rest of the table but excluding it from the QTD one so I can receive in this case the 8 value no matter the filters being applied.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if this helps or additional information is required&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 22:01:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Referencing-a-measure-in-another-measure/m-p/2101346#M47963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-27T22:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: All Referencing a measure in another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Referencing-a-measure-in-another-measure/m-p/2102844#M47983</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Hi joan,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You might think CALCULATE(SUM(Query[Revenue]),Query[Fiscal Week]="2021-W14") as&amp;nbsp;&lt;BR /&gt;"if&amp;nbsp;Query[Fiscal Week] ="2021-W14" then calculate..." expecting it will return 0 if [Fiscal Week] is not "2021-W14".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;That is not ture.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually,&amp;nbsp;&lt;SPAN&gt;CALCULATE(SUM(Query[Revenue]),Query[Fiscal Week]="2021-W14" means whatever outter filter is(from your filter page), provide the value of SUM(Query[Revenue] when [Fiscal Week]="2021-W14" which is 3 in your example. that's why you always get the same answer regardless your filter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you want to get QTD based on your selected week you can simply use TOTALQTD with complate date table related to your Revenue table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However if you need to keep current way, below code might give you the value you intended.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VAR W14 = IF(&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(Query[Fiscal Week])="2021-W14", SUM(Query[Revenue]),0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Plesae mark as solution if this resolved your issue.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 11:35:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/All-Referencing-a-measure-in-another-measure/m-p/2102844#M47983</guid>
      <dc:creator>colacan</dc:creator>
      <dc:date>2021-09-28T11:35:18Z</dc:date>
    </item>
  </channel>
</rss>

