Forum Discussion

rpinxt's avatar
rpinxt
Icon for Solution Sage rankSolution Sage
4 years ago
Solved

Automatically exclude months in graphic

Hi All, We have a graph showing data by month. Nothing veru special. Now the thing is that data is not yet complete and can be up to 2 months before that data is complete.   We are looking for a ...
  • ddpl's avatar
    4 years ago

    rpinxt ,

     

    1. Create a calculated column.

    Month = 'Table'[Date].[MonthNo]
     
    2. Create another calculated column.
    Flag = 
    var _mm = MAX('Table'[Month])
    return
    SWITCH(
        TRUE(),
        MONTH('Table'[Date]) = _mm || MONTH('Table'[Date]) = _mm-1, "Exclude",
        "Include"
    )
     
    3. Put the Flag column in the visual's filter section and tick mark "Include".