Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
thx1137
Helper I
Helper I

Visual Indicator for which Semantic Model Your Report is Running Against?

Good day,

 

We have 3 workspaces in the PBI Service, one each for Dev, Test, and Prod.

 

We are using "Live" Semantic models where we build all our reports off centralized models and have models in each of the workspaces for certain topic areas.

 

We intend to use Deployment Pipelines to move our content across environments in the future, but due to some constraints, not there yet.

 

Is there a way to expose to the Report (in a card, etc) what Semantic Model from which Workspaces a given report is built against/pulling data from?  The interface to change from one to another (Dev reports should be linked to the Dev Model in the Dev Workspace, etc.) is not super helpful regarding which specific model you are linked to, nor are consumers of our reports going to be able to use that.

 

Looking to understand if there is anything I can expose in the report that tells me or the user which model in which workspace the report they are consuming is linked to to avoid mistakes.  Other tools have report-level variables to expose this or leverage it for conditionally formatting the background, etc...some indication of what environment you are working against. 

 

Any thoughts on approaches to doing this in Power BI?

1 ACCEPTED SOLUTION
thx1137
Helper I
Helper I

Clever solution! 

View solution in original post

2 REPLIES 2
thx1137
Helper I
Helper I

Clever solution! 

Bipin-Lala
Solution Supplier
Solution Supplier

Hi @thx1137,

 

We also have a similar reporting structure, where we have DEV, TEST, and PROD Power BI Datasets deployed in 3 different workspaces. Each report uses a live connection to connect to datasets/ semantic models in each workspace.

 

In our case, we have created a parameter in the dataset itself called as Environment. It's value is set to Development, Test or Production, depending upon which workspace we are going to publish the workspace in.

 

This Environment parameter value is then displayed as a card on top of the page in our reports, indicating which dataset the report is currently connected to.

 

BipinLala_1-1712266360903.png

Don't forget to Enable Load for the parameter created, otherwise it won't be available in the Reporting Tab.

BipinLala_2-1712266515927.png

Similarly, we have also created a parameter for the workspace name and used it to display on top of the report page.

 

Although it's not an automated solution where we are automatically fetching workspace names as per the location of the semantic model, it still works well for us.

If you have to get the Workspace Name (and other related details) in the report automatically, you would have to make use of Power BI APIs and cmdlets to get that data, which would be an overkill.

 

Let me know if the suggestion helps!

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.