Forum Discussion

DataGuy2016's avatar
DataGuy2016
Advocate IV
9 years ago
Solved

DISTINCT command pulls BLANKS

Hi there,

 

We are creating DISTINCT tables.  We are getting distinct rows, but we are also getting a BLANK row.

 

How do we remove the BLANK row so we only have non blank rows?

 

We looked at:

FILTER(DISTINCT(Transactions[CheckInLoc]), <> BLANK)

 

Thanks!

 

 

  • Vvelarde's avatar
    Vvelarde
    9 years ago

    DataGuy2016

     

    Just change the column instead of all table

     

    Table = DISTINCT(FILTER(VALUES(Transactions[CheckInLoc]),LEN(Transactions[CheckInLoc])>0))

8 Replies

  • Vvelarde's avatar
    Vvelarde
    Community Champion

    DataGuy2016

     

    Hi, please try with this:

     

    Table = DISTINCT(FILTER(Transactions,LEN(Transactions[CheckInLoc])>0))

    • DataGuy2016's avatar
      DataGuy2016
      Advocate IV

      Hi,

       

      Nice try and thank you very much for your suggestion.

       

      However...

       

      I only want the CheckinLoc column with the unique values for that column.  Your query pulls all columns.  

      • Vvelarde's avatar
        Vvelarde
        Community Champion

        DataGuy2016

         

        Just change the column instead of all table

         

        Table = DISTINCT(FILTER(VALUES(Transactions[CheckInLoc]),LEN(Transactions[CheckInLoc])>0))