Forum Discussion
Change referenced table based on cell value
- 4 years ago
Hi Anonymous,
Try each Record.Field(Expression.Evaluate("#""" & "Employees, 2022" &"""", #shared){[Users=[AUTHOR_NAME]]},[Target Column])).
I guess, you know how/what to subsitute the "Employees, 2022" string with.
Be careful though, I think I had some issues with using #shared in the PBI online context (although it was Ok with Dataflows) with scheduled refresh. test it before deployment.
Kind regards,
John
Hi Anonymous,
Try each Record.Field(Expression.Evaluate("#""" & "Employees, 2022" &"""", #shared){[Users=[AUTHOR_NAME]]},[Target Column])).
I guess, you know how/what to subsitute the "Employees, 2022" string with.
Be careful though, I think I had some issues with using #shared in the PBI online context (although it was Ok with Dataflows) with scheduled refresh. test it before deployment.
Kind regards,
John
- Anonymous4 years agoNot applicable
John, that's perfect! I've got a column called 'Target Table' so just added that in as follows
each Record.Field(Expression.Evaluate("#""" & [Target Table] &"""", #shared){[Users=[AUTHOR_NAME]]},[Target Column]))Thanks for your help.
Rob