Forum Discussion

GM_AUS's avatar
GM_AUS
Regular Visitor
4 years ago
Solved

Matrix showing only Future Months

Hi!   Here is the link to Fake Data and Report https://drive.google.com/drive/folders/12psHWMA2tbSyAyZoTj90OOZnl49_qOck?usp=sharing    On my report I have a matrix and I would like to show the co...
  • v-kkf-msft's avatar
    4 years ago

    Hi GM_AUS ,

     

    You need to add a complete Calendar table. 

     

    Calendar =
    ADDCOLUMNS (
        CALENDAR ( DATE ( 2022, 1, 1 ), DATE ( 2023, 12, 31 ) ),
        "Year", YEAR ( [Date] ),
        "Month", FORMAT ( [Date], "mmmm" ),
        "MonthNum", MONTH ( [Date] ),
        "Is futuremonth", IF ( [Date] > EOMONTH ( TODAY (), -1 ), "Yes", "No" )
    )
    

     

    Then use the Calendar[Month] column in the matrix and filter it using the Calendar[Year] and Calendar[Is futuremonth] fields.

     

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.