<?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: Use CALCULATE and VALUES function to omit column values. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-CALCULATE-and-VALUES-function-to-omit-column-values/m-p/1835964#M39080</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try like &lt;/P&gt;
&lt;P&gt;CALCULATE(SUM(Purchase[Quantity]),filter(Environment, Environment[EnvironmentName]&amp;lt;&amp;gt;"Air"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;assuming slicer is no filtering the value&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;else&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CALCULATE(SUM(Purchase[Quantity]),filter(all(Environment), Environment[EnvironmentName]&amp;lt;&amp;gt;"Air"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;
&lt;P&gt;if needed check&lt;/P&gt;
&lt;P&gt;Need of an Independent Table in Power BI: &lt;A href="https://youtu.be/lOEW-YUrAbE" target="_blank"&gt;https://youtu.be/lOEW-YUrAbE&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 May 2021 11:22:59 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-05-11T11:22:59Z</dc:date>
    <item>
      <title>Use CALCULATE and VALUES function to omit column values.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-CALCULATE-and-VALUES-function-to-omit-column-values/m-p/1835958#M39079</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wanted to know whether using CALCULATE and DAX, can we create a measure such that a specific column value is ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table called 'Environment Name' and "Quantitiy'.&lt;/P&gt;&lt;P&gt;Environment Table contains names as 'Air','Water' and 'Land'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I want to create 3 measures each for Air, Water and Land such that the first measure(Air) can have just the values from Water and Land and vice versa.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried doing the same using two DAX queries, but I am not getting a s atisfactory solution.&lt;/P&gt;&lt;P&gt;2 ways which I used to write the query is given below;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&lt;SPAN&gt;No Air = CALCULATE(SUM(Purchase[Quantity]),VALUES(Environment[EnvironmentName])&amp;lt;&amp;gt;"Air")&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;2)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;No Air = CALCULATE(SUM(Purchase[Quantity]),Environment[EnvironmentName]&amp;lt;&amp;gt;"Air")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If anyone knows how to solve this, then please tell.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sanket Bhagwat&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 11:20:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-CALCULATE-and-VALUES-function-to-omit-column-values/m-p/1835958#M39079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-11T11:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Use CALCULATE and VALUES function to omit column values.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-CALCULATE-and-VALUES-function-to-omit-column-values/m-p/1835964#M39080</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try like &lt;/P&gt;
&lt;P&gt;CALCULATE(SUM(Purchase[Quantity]),filter(Environment, Environment[EnvironmentName]&amp;lt;&amp;gt;"Air"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;assuming slicer is no filtering the value&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;else&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CALCULATE(SUM(Purchase[Quantity]),filter(all(Environment), Environment[EnvironmentName]&amp;lt;&amp;gt;"Air"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;
&lt;P&gt;if needed check&lt;/P&gt;
&lt;P&gt;Need of an Independent Table in Power BI: &lt;A href="https://youtu.be/lOEW-YUrAbE" target="_blank"&gt;https://youtu.be/lOEW-YUrAbE&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 11:22:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-CALCULATE-and-VALUES-function-to-omit-column-values/m-p/1835964#M39080</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-05-11T11:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Use CALCULATE and VALUES function to omit column values.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-CALCULATE-and-VALUES-function-to-omit-column-values/m-p/1836032#M39090</link>
      <description>&lt;P&gt;Hi Amit.&lt;/P&gt;&lt;P&gt;The query&lt;/P&gt;&lt;P&gt;'&lt;SPAN&gt;CALCULATE(SUM(Purchase[Quantity]),filter(Environment, Environment[EnvironmentName]&amp;lt;&amp;gt;"Air"))' worked perfectly fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sanket Bhagwat&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 12:02:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-CALCULATE-and-VALUES-function-to-omit-column-values/m-p/1836032#M39090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-11T12:02:51Z</dc:date>
    </item>
  </channel>
</rss>

