leishtheman
New Member
- Joined
- Oct 1, 2007
- Messages
- 32
Hello
I have an annoying issue whereby column names sometimes change within my DAX formulas by themselves. It appears to be getting caused by a combination of i) their positions in the underlying excel file changing, and ii) my combine files import routine into Power Query. For example if I have a basic DAX formula saying : COUNT(D_Snapshots[Genuine Shortage] where 'Genuine Shortage' is in column F in the underlying Excel table and I then add a new column called 'Type' into column E thus shunting Genuine Shortage into column G, the Dax changes itself to say COUNT(D_Snapshots[Type]).
This is causing my formulas to become incorrect and I've been unable to find a solution. I've tried hard coding columns names, dynamically identifying column index numbers - DAX doesn't like anything like this. Anybody any ideas around how to overcome this?
Thanks in advance
I have an annoying issue whereby column names sometimes change within my DAX formulas by themselves. It appears to be getting caused by a combination of i) their positions in the underlying excel file changing, and ii) my combine files import routine into Power Query. For example if I have a basic DAX formula saying : COUNT(D_Snapshots[Genuine Shortage] where 'Genuine Shortage' is in column F in the underlying Excel table and I then add a new column called 'Type' into column E thus shunting Genuine Shortage into column G, the Dax changes itself to say COUNT(D_Snapshots[Type]).
This is causing my formulas to become incorrect and I've been unable to find a solution. I've tried hard coding columns names, dynamically identifying column index numbers - DAX doesn't like anything like this. Anybody any ideas around how to overcome this?
Thanks in advance