Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Show 0 for empty cells in table

I am wondering if there is something similar to excel/pivot table"For empty cells show" (see picture below) in Power BI table/matrix visuals? I know that is it possible to solve using DAX (replacing...
  • Greg_Deckler's avatar
    5 years ago

    Anonymous No, you would have to solve that in DAX. There is a "Show values with no data" but that just shows blanks if that is what the measure returns.

  • v-luwang-msft's avatar
    5 years ago

    Hi Anonymous ,

    Adjust the corresponding measures, which have null values that you want to transform to 0:

     

    newmeasure= var beforemeasure=(here is the measure you used before)
    return if(beforemeasure=blank(),0,beforemeasure)

     

     

    Wish it is helpful for you!

    Best Regards

    Lucien