<?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 Conditional VALUES in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-VALUES/m-p/3173786#M114495</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To iterate over specific ages takes a lot more time than to iterate over age groups, so I would like to avoid doing that unless age is filtered.&lt;/P&gt;&lt;P&gt;My &lt;EM&gt;if isfiltered&lt;/EM&gt; - solution does not work when i put it inside the sumx-statement. How would you go about doing this?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2023 12:27:45 GMT</pubDate>
    <dc:creator>Martin_Songstad</dc:creator>
    <dc:date>2023-04-05T12:27:45Z</dc:date>
    <item>
      <title>Conditional VALUES</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-VALUES/m-p/3173786#M114495</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To iterate over specific ages takes a lot more time than to iterate over age groups, so I would like to avoid doing that unless age is filtered.&lt;/P&gt;&lt;P&gt;My &lt;EM&gt;if isfiltered&lt;/EM&gt; - solution does not work when i put it inside the sumx-statement. How would you go about doing this?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 12:27:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-VALUES/m-p/3173786#M114495</guid>
      <dc:creator>Martin_Songstad</dc:creator>
      <dc:date>2023-04-05T12:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional VALUES</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-VALUES/m-p/3173834#M114501</link>
      <description>&lt;P&gt;The problem is that IF returns a scalar value, not a table, and so you can't iterate over the result. I think you'd need to rework the code something like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;My Measure =
IF (
    ISFILTERED ( 'Table'[Age] ),
    SUMX ( VALUES ( 'Table'[Age] ), [Calculation] ),
    SUMX ( VALUES ( 'Table'[Age group] ), [Calculation] )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Apr 2023 12:47:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-VALUES/m-p/3173834#M114501</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-05T12:47:04Z</dc:date>
    </item>
  </channel>
</rss>

