Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Card visualization for % values

Hi All,   I am new to power BI and am trying to create card visualization to show percentage for a column. Someone suggested that I would need to create a measure first which then I would pull into...
  • HotChilli's avatar
    7 years ago

    Create a measure

    Measure  =  
    DIVIDE(COUNTROWS(FILTER(Table, Table[Column1] = "female")), COUNTROWS(Table))

    Format the measure as a percentage.  Put it on a card.

     

  • HotChilli's avatar
    HotChilli
    7 years ago

    You can't compare a string to a boolean.

    Table[Column1] <> ISBLANK(Table[Column1])

    If you do an explicit comparison with blank(), you need to understand that 0 and empty string will also be blank.

    That's ok if you understand your data.

    Best practice is to use ISBLANK, I think you can write

    COUNTROWS(FILTER(Table4, not ISBLANK(Table4[Column1])))
    but please test.