<?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: Filter Blank values in a division without using filter Panel in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Blank-values-in-a-division-without-using-filter-Panel/m-p/3257947#M120381</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="419809" data-lia-user-login="Fantmas" class="lia-mention lia-mention-user"&gt;Fantmas&lt;/a&gt;&amp;nbsp;if not already, check article&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/blank-handling-in-dax/" target="_self"&gt;https://www.sqlbi.com/articles/blank-handling-in-dax/&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Keep in mind how DAX engine treat blank in functions like AVERAGE, link&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/average-function-dax" target="_self"&gt;https://learn.microsoft.com/en-us/dax/average-function-dax&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;It could be that you need to use&amp;nbsp;&lt;SPAN&gt;AVERAGE&lt;FONT color="#FF0000"&gt;X&lt;/FONT&gt; function. I hope this help.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2023 12:20:29 GMT</pubDate>
    <dc:creator>some_bih</dc:creator>
    <dc:date>2023-05-29T12:20:29Z</dc:date>
    <item>
      <title>Filter Blank values in a division without using filter Panel</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Blank-values-in-a-division-without-using-filter-Panel/m-p/3249037#M119817</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have created a DAX expression to calculate an average based on a division, my issue is to have the correct figures I need to remove from the calculation blank value, the only Solution that I found so far it is to use the filter pane and I would like to know if I can filter the value inside my DAX expression :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Test _ WH_Mesure =

VAR Numerator =
    CALCULATE(
        AVERAGE('Fact Table'[Value]),
        FILTER(ALL(DimWHAttribute[Attribute]), DimWHAttribute[Attribute] = "Attribute A"
    )
)

VAR Denominator =
    CALCULATE(
        AVERAGE('Fact Table'[Value]),
        FILTER(ALL(DimWHAttribute[Attribute]), DimWHAttribute[Attribute] = "Attribute B"
    )
)

VAR DivisionResult =
    DIVIDE(Numerator, Denominator, 0)

RETURN
    SWITCH(
        TRUE(),
            ISBLANK(DivisionResult) || DivisionResult = 0 || ISBLANK(Numerator) || ISBLANK(Denominator),
            BLANK(),
            DivisionResult
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 06:23:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Blank-values-in-a-division-without-using-filter-Panel/m-p/3249037#M119817</guid>
      <dc:creator>Fantmas</dc:creator>
      <dc:date>2023-05-23T06:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Blank values in a division without using filter Panel</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Blank-values-in-a-division-without-using-filter-Panel/m-p/3257947#M120381</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="419809" data-lia-user-login="Fantmas" class="lia-mention lia-mention-user"&gt;Fantmas&lt;/a&gt;&amp;nbsp;if not already, check article&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/blank-handling-in-dax/" target="_self"&gt;https://www.sqlbi.com/articles/blank-handling-in-dax/&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Keep in mind how DAX engine treat blank in functions like AVERAGE, link&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/average-function-dax" target="_self"&gt;https://learn.microsoft.com/en-us/dax/average-function-dax&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;It could be that you need to use&amp;nbsp;&lt;SPAN&gt;AVERAGE&lt;FONT color="#FF0000"&gt;X&lt;/FONT&gt; function. I hope this help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 12:20:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Blank-values-in-a-division-without-using-filter-Panel/m-p/3257947#M120381</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-05-29T12:20:29Z</dc:date>
    </item>
  </channel>
</rss>

