<?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: whats the use of values() in CALCULATED? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/whats-the-use-of-values-in-CALCULATED/m-p/1887655#M40651</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When you use this measure in a visual, let's say a TAble Visual, It will show the same value every line but will be filtered by the Customer Number.&lt;BR /&gt;&lt;BR /&gt;ALLSELECTED() Clears the filters from all the columns within the visual (Query) and you provide one more filter to CALCULATE to include Customer Number.&lt;BR /&gt;&lt;BR /&gt;VALUES Returns distinct values from a column and the result is a table. CALCULATE needs the filter as table so it is applicable at row and total level.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jun 2021 10:41:59 GMT</pubDate>
    <dc:creator>Fowmy</dc:creator>
    <dc:date>2021-06-08T10:41:59Z</dc:date>
    <item>
      <title>whats the use of values() in CALCULATED?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/whats-the-use-of-values-in-CALCULATED/m-p/1887523#M40647</link>
      <description>&lt;P&gt;I came across this measure:&lt;/P&gt;&lt;P&gt;CALCULATE(SUM(Revenue[Revenue])&lt;BR /&gt;,ALLSELECTED()&lt;BR /&gt;,VALUES('Customer'[Customer Number])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whats the use of VALUES() in this case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The microsoft definition isn't helping "&lt;SPAN&gt;When the input parameter is a column name, returns a one-column table that contains the distinct values from the specified column."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 09:57:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/whats-the-use-of-values-in-CALCULATED/m-p/1887523#M40647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-08T09:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: whats the use of values() in CALCULATED?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/whats-the-use-of-values-in-CALCULATED/m-p/1887655#M40651</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When you use this measure in a visual, let's say a TAble Visual, It will show the same value every line but will be filtered by the Customer Number.&lt;BR /&gt;&lt;BR /&gt;ALLSELECTED() Clears the filters from all the columns within the visual (Query) and you provide one more filter to CALCULATE to include Customer Number.&lt;BR /&gt;&lt;BR /&gt;VALUES Returns distinct values from a column and the result is a table. CALCULATE needs the filter as table so it is applicable at row and total level.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 10:41:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/whats-the-use-of-values-in-CALCULATED/m-p/1887655#M40651</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-06-08T10:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: whats the use of values() in CALCULATED?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/whats-the-use-of-values-in-CALCULATED/m-p/1887972#M40661</link>
      <description>&lt;P&gt;This is a bit confusing... why not just do:&lt;BR /&gt;&lt;BR /&gt;CALCULATE(SUM(Revenue[Revenue])&lt;BR /&gt;,ALLSELECTED()&lt;BR /&gt;,'Customer'[Customer Number]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's &lt;STRONG&gt;VALUES()&lt;/STRONG&gt; adding?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 12:25:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/whats-the-use-of-values-in-CALCULATED/m-p/1887972#M40661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-08T12:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: whats the use of values() in CALCULATED?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/whats-the-use-of-values-in-CALCULATED/m-p/1888043#M40662</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You cannot refer to a naked column, you need to use a function to return a table or a column of a table for the filter parameter of the CALCULATE function.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/calculate-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/calculate-function-dax&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 12:46:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/whats-the-use-of-values-in-CALCULATED/m-p/1888043#M40662</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-06-08T12:46:42Z</dc:date>
    </item>
  </channel>
</rss>

