cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
todea Regular Visitor
Regular Visitor

How to make a visual queue in a PowerBI report to show which data source is in use e.g. DEV or PROD

Hi team,

 

We have 4 DW environments, Dev, Test, UAT & Prod and I have a Data Quality report and can change data source between the 4 environments to look for issues. Is there is a way to show on the report, which data source I have connected to without going to Data Source Settings? I would prefer an obvious visual indicator that would just parse the name of the data source to a powerbi visual. Alternately is there a way to use colours to demonstrate which data source a report is using e.g. a red banner for DEV, green for PROD etc.

 

With thanks,
Tim

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How to make a visual queue in a PowerBI report to show which data source is in use e.g. DEV or

HI @todea,

 

Power query not support to show the original database information.

 

For your scenario, I'd like to suggest you to modify your formula to use query parameter to get data. Then use these parameter to create a table to log the data source information.

 

For example: 

let
    Source = Sql.Databases(Server){[Name=Database]}[Data]
in
    Source

Notice: Server and Database are query parameters.

5.PNG

Sourceinfo Table:

let
    Source = #table( type table[ #"Server"=text, #"Database"=text ], {{Server,Database}})
in
    Source

6.PNG

 

Reference:

Working with Parameters and Functions in Power Query/Excel and Power BI

Deep Dive into Query Parameters and Power BI Templates

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
2 REPLIES 2
Community Support Team
Community Support Team

Re: How to make a visual queue in a PowerBI report to show which data source is in use e.g. DEV or

HI @todea,

 

Power query not support to show the original database information.

 

For your scenario, I'd like to suggest you to modify your formula to use query parameter to get data. Then use these parameter to create a table to log the data source information.

 

For example: 

let
    Source = Sql.Databases(Server){[Name=Database]}[Data]
in
    Source

Notice: Server and Database are query parameters.

5.PNG

Sourceinfo Table:

let
    Source = #table( type table[ #"Server"=text, #"Database"=text ], {{Server,Database}})
in
    Source

6.PNG

 

Reference:

Working with Parameters and Functions in Power Query/Excel and Power BI

Deep Dive into Query Parameters and Power BI Templates

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
todea Regular Visitor
Regular Visitor

Re: How to make a visual queue in a PowerBI report to show which data source is in use e.g. DEV or

Hi @v-shex-msft thanks very much for your advice and forgive my slow reply. It is beyond my ability so i will seek some help from a colleague. Many thanks for takign the time to respond, thanks so much Smiley Happy

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 132 members 1,901 guests
Please welcome our newest community members: