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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.