Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Making null a zero when using 'Count' of a column

Hi All!   What I am trying to achieve as an end goal is a line chart where the nulls are treated as zeros so lines remail consitant.   I unfortunatley can not show the data I am working with, as ...
  • v-yulgu-msft's avatar
    7 years ago

    Hi Anonymous ,

     

    Create a Month dimension table which is linked to fact data table based on [Month] field.

    Month dimension = VALUES(Table7[Month])

     

    Add [Subject] into chart legend. Add below measure to line chart rather than using Count for Subject column.

    Countvalue = COUNT(Table7[Subject])+0

    Best regards,

    Yuliana Gu