Forum Discussion
Show Database name in visual
Is there a way to display the database name from the connection information in a visual on a page?
spartan27244 why not store the database name in a parameter and then use that parameter in your queries and also use that parameter to display on the report. If you change parameter value database a to b, it will also change the queries and also show on the report. It is a much cleaner and scalable solution and you don't have to manually change the database name in the queries.
Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
1 Reply
- parry2kSuper User
spartan27244 why not store the database name in a parameter and then use that parameter in your queries and also use that parameter to display on the report. If you change parameter value database a to b, it will also change the queries and also show on the report. It is a much cleaner and scalable solution and you don't have to manually change the database name in the queries.
Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡