Forum Discussion

ajames95's avatar
ajames95
Frequent Visitor
7 years ago
Solved

How to include null values in filter visualization?

Hi,    I have a simple graph that i am filtering with a date slicer.  However I want the null values to show when i click on certain dates?    This is when I there is no filtering on the graph. ...
  • v-juanli-msft's avatar
    7 years ago

    Hi ajames95 

    Leave main data table and calendar table no relationship

    Create a measure

    Measure =
    VAR slectedmo =
        SELECTEDVALUE ( 'calendar'[year-month] )
    VAR y_m =
        FORMAT ( MAX ( 'Table'[date] ), "yyyy-mm" )
    RETURN
        CALCULATE ( SUM ( 'Table'[value] ), FILTER ( 'Table', slectedmo = y_m ) )
    

     

    Best Regards
    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.