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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
MatheusLPS
Helper I
Helper I

SAP BW Cube.Parameters. How to extract the list of values?

Hello.

 

Power Query has a function named Cube.Parameters. So, how may I extract the possible values from a parameter BW Cube?

 

I now that this kind of parameter contains a list of possiblem values. My list is huge. My task is to filter some of the list.

 

 

Thanks

5 REPLIES 5
ronan
Frequent Visitor

@MatheusLPS and everyone did you solved this problem? I need the same parameters possible values data.

v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @MatheusLPS ,

If I understand your requirement correctly that you want to get all of the possiblem values in the list.

If it is, I'm afraid that we may not achieve that as it may exceed the limit of Character length of the query step.

@ImkeF may have other ideas?

Best Regards,

Cherry

 

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

Hi @MatheusLPS 

that's what I call a good problem-description 🙂

To get the name of the DB for the Cube.Parameters-function it's easiest to start with grabbing a random item from the cube. That will return a query with 3 steps. In the last step, you will see the name of the cube you need:

image.png

 

Then add another step where you use that name in the Cube.Parameters-function (I don't have any of them in my DB, so empty return here): 

 

image.png

 

Make sure to keep the previous steps, as they contain the path to your data source.

 

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Thanks @ImkeF for the reply.

 

I already got to this point. It shows the paramether, 1 in my case.

 

Capturar.PNG

 

But my task is after this point. How to get/extract all or part of the list INSIDE the parameter? On the video I sent, I clicked on 3 dots and the list shows. But I would like to know if there is a function to call this list outside the GUI, via power query code.

 

on a pseudo code, something like this to show the members of the parameter: Cube.Parameters("SomeCube").ShowListOfValues

Capturar2.PNG

 

 

 

 

 

ImkeF
Community Champion
Community Champion

Sorry, but I don't know a way to retrieve these values.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.