web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dynamic column names bug
Power Apps
Answered

Dynamic column names bug

(0) ShareShare
ReportReport
Posted on by 204

 I'm having problems wrting functions in my column names. They keep getting evaluated and then set as strings when I restart my application. This is obviously a bug. Does anyone know a work-around?


dynamicCols.png

 

Functions should should under no circumstances be evaluated and then set ... I mean imagine the horror of having this in excel. 
I've never set this column to "2018-32" this is, and should be a lookup from another table. 

EDIT: I'm going to try and wrap the lookups with the TEXT() function, to see if it sticks. I will get back to this thread with any findings. 

 



Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    on at

    Hi @agneum,

     

    This is expected behavior. You cannot put formula in the controls' name, it has to be a string. This is by design.

     

    Regards,

    Mona

  • Verified answer
    agneum Profile Picture
    204 on at

    welp.png


    @v-monli-msft: No. This is not "epxected" behaviour, and you won't convince me otherwise. DisplayName = F(X) indicates that it is a function of X. So, when X changes, so must F(X). 

    This completely ruins the possiblity to have dynamic column names. The column name isn't the same as the DisplayName which can, and should be anything the user wants it to be, at any time. The actual CTE i'm reading has the columns numbered, where 0 is the current year and week. The column names are integers, which are not the same as display names. What the lookup does is simply convert those integers to DisplayNames, but if I'd like the data of a column, It would be absolutely logical to use the column name as specified in the CTE, not the display name.


    poweroverwhelming.png

    The solution is very simple - two properties. One Name for the column which is static, and DisplayName which is dynamic and anything the user wants to map it to and display. 

    I just want a workaround for this, as now I will be forced, every week, to manually update 52 column names for a rolling year.

    As a novice devloper, even I can understand how ludicrous this is. I'm thinking of going back to developing in C# and .NET, not that I'm an epxert at it, but because the time I'm spending doing all these workarounds and flows to get a single table from SQL is a complete waste of my time, and might as well be spent learning to code on a more capable platform. 

    I want to believe it's easy and that I can do these simple tasks, but to everything the rebuttal is "post in suggestion forum", instead of acknowledging the issue and providing a timeline for it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard