<?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: delete values of a measure when a value of an other measure is blank in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/delete-values-of-a-measure-when-a-value-of-an-other-measure-is/m-p/4015946#M158277</link>
    <description>&lt;P&gt;thank you so much, it works!!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 15:19:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-28T15:19:43Z</dc:date>
    <item>
      <title>delete values of a measure when a value of an other measure is blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/delete-values-of-a-measure-when-a-value-of-an-other-measure-is/m-p/4015131#M158206</link>
      <description>&lt;P&gt;Hello, I wrote this measure to calculate sales on square meters&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sold/Sqm = Sold/SqMeters&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;but when I try to average the total of this measure by Store, he gets the SqMeters total wrong because he returns the SqMeters value even when the Sold value related to a Store, is empty.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Store is a column&lt;BR /&gt;Sold is a measure&lt;BR /&gt;SqMeters is a column&lt;BR /&gt;Sold/SqM is a measure&lt;/P&gt;&lt;P&gt;Red is the wrong total, and green is the right onw that i want because doesn't count FOOD store that has empty sold.&lt;BR /&gt;&lt;BR /&gt;How do I change the measure so that it only counts the Solds present related to Store?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I also wrote&lt;BR /&gt;&lt;EM&gt;Sold/Sqm = &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;VAR _soldsq = Sold/SqMeters&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IF([Sold],_soldsq)&lt;BR /&gt;&lt;/EM&gt;or&lt;BR /&gt;&lt;EM&gt;Sold/Sqm = &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;VAR _soldsq = Sold/SqMeters&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IF([Sold]&amp;gt;1,_soldsq)&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;EM&gt;Sold/Sqm = &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;VAR _soldsq = Sold/SqMeters&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IF(NOT(ISBLANK([Sold]&amp;gt;1)),_soldsq)&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;but it doesn't work&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 09:03:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/delete-values-of-a-measure-when-a-value-of-an-other-measure-is/m-p/4015131#M158206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-28T09:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: delete values of a measure when a value of an other measure is blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/delete-values-of-a-measure-when-a-value-of-an-other-measure-is/m-p/4015467#M158225</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try below measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sold/Sqm =
CALCULATE (
    Sold / SqMeters,
    FILTER ( VALUES ( Table[Store] ), [Sold] &amp;lt;&amp;gt; BLANK () )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you~&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 11:13:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/delete-values-of-a-measure-when-a-value-of-an-other-measure-is/m-p/4015467#M158225</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-06-28T11:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: delete values of a measure when a value of an other measure is blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/delete-values-of-a-measure-when-a-value-of-an-other-measure-is/m-p/4015946#M158277</link>
      <description>&lt;P&gt;thank you so much, it works!!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 15:19:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/delete-values-of-a-measure-when-a-value-of-an-other-measure-is/m-p/4015946#M158277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-28T15:19:43Z</dc:date>
    </item>
  </channel>
</rss>

