Forum Discussion

gillyr7's avatar
gillyr7
Frequent Visitor
7 years ago
Solved

Keep Blank Rows After Filter And Create Average of all Others

I am having a trouble with a model I am building in Power BI Desktop. I have a table, and in the end, I am trying to calculate the average price grouped by Affiliation and Code.   The caveat,...
  • Anonymous's avatar
    Anonymous
    7 years ago

    The answer is maybe.  It will depend on your slicers and if you made to that the table relationship has the security filters set to 1 way.

     

    If your slicers are set up to filter based on the fields in your merge table, then only the number considered by my measure will be impacted.  The list of Key values will be unfiltered.

     

    You mentioned a good point, the way my measure is set up. If a Key connects to no values it will return blank.  A Blank is different to a zero. So the question for you would be, do you want blanks to be zero?  If thats the case, add a "+ 0" after the SUM()