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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

4 REPLIES 4
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

 

 

 

 

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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