Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Dynamic column header in matrix visual (based on date filter)

Hi, 

I have 6 measures like:

 

measure1 = calculate(sum(data[value]), filter(calendar, format(eomonth(today(), 1), "YYYYMM") = calendar[month]))

measure2 = calculate(sum(data[value]), filter(calendar, format(eomonth(today(), 2), "YYYYMM") = calendar[month]))

 

Is it possible to make dynamic column headers in matrix visual (measure1 is March this month, but April next month)? 

 

I understand I can create, for instance, dynamic cards above the matrix, but I'd like to avoid that.

I could also create a pivoted table for these 6 months (though not sure how to make column headers and values dynamic there either), but adding another table with such complexity seems too much. 

 

Please advise. Thanks. 

  • Hi,

     

    You can try this column:

    Column = Data[Date].[Month]

    Then apply relative date filter to the matrix visual:

    Hope this helps.

     

    Best Regards,

    Giotto Zhi

4 Replies