Dynamic column names #118
Unanswered
Myxomopka666
asked this question in
Q&A
Replies: 1 comment 1 reply
-
To debug this, just comment part of your script to see where the problem is located.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings,
I have couple of SQL models that facilitate data for coluple different views.
What I`m trying to acheve is dynamically to set column names based on the current date
Here is an example.
Lets say that current date is 31-01-2000. I have 5 columns that I need to rename. My query returns the columns from first row. In report they should looks like second row.
In one of the models in "Pre Load Sciprt" I have the following code `
` In one report that code works. In second report same code same code applied to SQLmodel1 gives an error but the error is in SQLmodel2 Error detail:
Object reference not set to an instance of an object.
Could you please help me understand what I`m doing wrong ?
Beta Was this translation helpful? Give feedback.
All reactions