'Use SSRS DataSource Name in Expression

SSRS 2019. In my report I would like to include a text box in the header saying what environment the data was produced from. We have development, test and production environments. The shared data sources follow a specific naming standard that makes it easy to identify if they are dev, test or prod. So I'd like to say if the shared data source is like "dev" or "test" then display a message at the top of the report, otherwise hide it.

Is there any way I can reference the shared data source in an expression in the report? And I don't mean the name you give the data source in the report, I mean the name of the shared data source.

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source