Forum Discussion

srhsloan's avatar
srhsloan
Frequent Visitor
8 years ago
Solved

Make Card Visual show 0 not Blank

I've got a card visual which is just showing a count of how many items match my filter. It works great when there are items matching, but if nothing matches it shows (Blank). How can I make it show 0...
  • danextian's avatar
    8 years ago

    Hi srhsloan,

     

    Power BI measures behave like that by design. You need to set it in your measure If you want to override this behavior. You can make your DAX measure something like this:

     

     

    MEASURE =
    IF ( ISBLANK ( SUM ( 'Table'[Sales] ) ), 0, SUM ( 'Table'[Sales] ) )

     

    Be aware that the this will affect how the visuals that use this modified measure and other measures that are dependent on this modified measure look.