Forum Discussion

eddiem's avatar
eddiem
Regular Visitor
3 years ago

Visual brakes after field name changes

Hi!

I'm working on a few visuals with data from a spreadsheet updated monthly. Column headers are standard (don't change), yet I need to rename columns showing dates so the headers of the visualization tables show the month being analyzed:

 

   

 

 

 

It works until next month's data is updated, then Headers are auto-refreshed to their corresponding new names (i.e. "User Logins Jan 2023") which causes the visualization tables and charts to break.

 

Any idea on how can I achieve this without affecting the visuals?

Is there a way to dynamically rename fields in the Report Area? or

Is there a way I can build visuals referencing column numbers instead of names?

 

I appreciate y'all's ideas on this!

1 Reply

  • eddiem , Use an independent date slicer to select month

     

    Then this measure can show two months

     

    //Date1 is independent Date table, Date is joined with Table
    new measure =
    var _max = maxx(allselected(Date1),Date1[Date])
    var _min = eomonth(_max, -2) +1
    return
    calculate( sum(Table[Value]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))

     

    You can use Month year from date table on column of Matrix

    Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI