- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Getting information about the environment (App or Workspace Name)
I have a report published in different Workspaces/Apps and I need to know where I am, when accessing the report, to control the behavior of some visuals. Is it possible to get this kind of information (e.g. using API) so I can use it in DAX?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I have a similar requirement. It would be great if the report could automatically switch Datasource depending on which environment the report is in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@gdecome , Not very clear on exact need.
But power bi cmdlets and Rest API can help
https://docs.microsoft.com/en-us/powershell/power-bi/overview?view=powerbi-ps
rest api
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you for your feedback ... in fact, when the user opens the report (Power BI Services), I need to identify the App or Workspace where the report is coming from (since the same pbix is published in different workspaces). I tested some REST API but I don´t think it is a solution for me because they are getting existing information in the environment, for example, I can get a list of reports in Workspace ABC but I need to inform the Workspace ID. It would work for me if I have an API returning the ID where I am at that moment. Anyway, I will try a simple approach with Parameters in Power Query. I can publish it in different workspaces and then I can change the Parameter (Dataset/Settings in PowerBI Services) and use it for my logic. Just need to remember updating the Parameter when I publish the report again but it is not a big deal.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
07-03-2024 10:23 PM | |||
07-24-2024 04:44 AM | |||
07-04-2024 08:09 AM | |||
10-23-2024 02:40 AM | |||
01-17-2022 04:32 AM |
User | Count |
---|---|
84 | |
81 | |
52 | |
37 | |
36 |