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
ovonel
Post Prodigy
Post Prodigy

check if cube is used?

Hi all,

 

I have a legacy SSAS engine:

ovonel_0-1644225610942.png

 

 

 

With around 20 cubes…

 

Is there any way to check which are currently being used by power bi reports?

 

That is, can I have some sort of trace or query where I can confirm if the cube has been queried and/or connected from any powerbi/cube?

 

If not? What’s a proper way of checking this? (as a plan B I thought of renaming the cubes to %_ToBeDeleted, and wait for a powerbi/ excel consumption to break…)

 

 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi,  @ovonel 

Are these reports created and published by you locally?
Maybe you can check  'Global permissions' of these cubes held on your local computer in 'Data source settings'.

26.png

 

You can also try the Rest API to get all the data sources in each dataset.

Please refer to this related thread.

how to fetch all Datasources for all Datasets 

 


get all workspaces which you have access to:

https://docs.microsoft.com/en-us/rest/api/power-bi/groups/getgroups

Loop through all workspaces and for each workspace get all datasets :

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasetsingroup

And then for each dataset get all datasources : 

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasourcesingroup

 


Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi,  @ovonel 

Are these reports created and published by you locally?
Maybe you can check  'Global permissions' of these cubes held on your local computer in 'Data source settings'.

26.png

 

You can also try the Rest API to get all the data sources in each dataset.

Please refer to this related thread.

how to fetch all Datasources for all Datasets 

 


get all workspaces which you have access to:

https://docs.microsoft.com/en-us/rest/api/power-bi/groups/getgroups

Loop through all workspaces and for each workspace get all datasets :

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasetsingroup

And then for each dataset get all datasources : 

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasourcesingroup

 


Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@ovonel , we usually use DAX studio to check unused measure. See if that can help in this case too

https://ssbi-blog.de/blog/technical-topics-english/how-to-identify-measures-not-used-in-your-pbix-fi...

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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