Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
eddiem
Regular Visitor

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:

 

Capture3.PNG

   Capture2.PNG

 

 

 

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 1
amitchandak
Super User
Super User

@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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.