Forum Discussion

pfarahani's avatar
pfarahani
Helper II
5 years ago
Solved

Blank Values

Hi Guys, I created this Calculated table, and it seems to work pretty good, how can I handle the blank? Bascially to say if its blank then to print the word blank. Thanks      
  • Greg_Deckler's avatar
    Greg_Deckler
    5 years ago

    pfarahani Well, one way would be to incorporate the FILTER for removing the blank row from you CALCULATETABLE and do this:

    Table =
      VAR __BlankTable = SELECTCOLUMNS( { ("Blank", "Blank", 1) },"DepartmentAbbreviation",[Value1], "CourtDept",[Value2],"Used",[Value3])
    RETURN
      UNION(
        __BlankTable,
        <Your CALCULATETABLE with the FILTER for blank rows goes here>
      )