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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
82186
Frequent Visitor

How can I make sure that the filters on DAX do not get lost after renaming?

Tell me please There is a column "Aggregate name" in this column there are different names of signals. I don't like these names and I want to rename them, for this I use the SUBSTITUTE command.

Code:

Name of the units= SUBSTITUTE([Unit name],"DB signal ","Signal 1")

Let's say that at some point in time I want to rename it from "Signal 1" to "Signal 2" After renaming, the filters will go wrong

How can I make sure that the filters on DAX do not get lost after renaming?

2 REPLIES 2
lbendlin
Super User
Super User

Create a separate column with the ID of each signal.  Base your filters on the ID column.  Then you can change names without impacting the result.

I tried to do it via SWITCH, but nothing worked

Aggregates name = SWITCH( TRUE(), [Aggregate name] = "LD11_Cnt_weight_1","LD11: Scales No.5", [Unit name] = "Cnt_Saw1_CutStart","Saw 1-n", [Unit name] = "Cnt_Saw2_CutStart","Saw 2-h2")

Can you send me a sample code?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors