Forum Discussion

StuartSmith's avatar
StuartSmith
Icon for Power Participant rankPower Participant
5 years ago
Solved

Table - Only show rows where they have empty cells.

I have been asked to create a report for users to view any dataset records that have missing data. I have tried using filters, but if I try multiple filters, it will only display rows that meet both filter conditions. 

 

As an example, if I have a table similar to the below and I filter "Floor" as "Blank" and "Users" as "Blank", I want to see "UK" and "Germany", but the filter displays nothing as no row has both rows with "Blank" in "Users" and "Floors".

 

CountryCityFloorsUsersOther
UKLondon 7N/A
GermanyBerlin2 N/A
USWashington49N/A
UAEDubai 58N/A

 

So the table should show...

 

CountryCityFloorsUsersOther
UKLondon 7N/A
GermanyBerlin2 N/A

 

How can I get all rows showing that have empty cells? plus one other condition, if a column contains a "0", it should also display as"0" is a default value and needs to be updated to an actual value.

 

Hope that makes sense.

Stu

  • Hi StuartSmith ,

     

    You can create a measure for visual level filter

     

     

    Measure = IF(ISBLANK(MAX('Table'[Floors])) || ISBLANK(MAX('Table'[Users])),1,0)

     

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    Best Regards,

    Dedmon Dai

3 Replies

  • StuartSmith , Create two measure like this and use with other un summarised columns

     

    Floors = if( not(isblank(sum(table[Floors]))) && not(isblank(sum(table[Users]))), blank(), sum(Table[Floors]))

    Users = if( not(isblank(sum(table[Floors]))) && not(isblank(sum(table[Users]))), blank(), sum(Table[Users]))

     

    Please provide your feedback comments and advice for new videos
    Tutorial Series Dax Vs SQL Direct Query PBI Tips
    Appreciate your Kudos.

    • StuartSmith's avatar
      StuartSmith
      Icon for Power Participant rankPower Participant

      Sorry, where i tried to simplify my table example, I forgot to mention that most columns will be string types and therefore your example produces a unable to display visual error due to "Sum" not working with strings.

       

      I will try to adapt your solution, but any futher advise would be great.  

       

      Also, protentially, it could involve 10 columns that need to be checked for blanks, dont know if this will cause issues.

      • v-deddai1-msft's avatar
        v-deddai1-msft
        Icon for Community Support rankCommunity Support

        Hi StuartSmith ,

         

        You can create a measure for visual level filter

         

         

        Measure = IF(ISBLANK(MAX('Table'[Floors])) || ISBLANK(MAX('Table'[Users])),1,0)

         

         

         

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

         

        Best Regards,

        Dedmon Dai