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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Parameter in SAP BW Query Error

Hi,

 

I'm trying to pass a parameter to a SAP BW query but I keep getting an error that says "The value is not a cube." Below is my query. Much appreciated if someone can help fix this.

 

 

 

let
  Prefix = "[0FISCPER]",
  CuurentPeriod = Text.Combine({"Z6",Param_CurrentPeriod}),
  #"GetParameterValue" = "[" & (CuurentPeriod) & "]",
  Orders = #"Fact Sales Open Orders",
   #"Added items" = Cube.Transform(Orders, 
   {
    {Cube.ApplyParameter, "[!V000001]", {"[0FISCPER]." & #"GetParameterValue"}},
    ....
   })
in
  #"Added items"

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I managed to get around the error by creating a fuction to pass the parameter 😃

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

I managed to get around the error by creating a fuction to pass the parameter 😃

This worked for me.

ST is current data in format YYYYMMDD

 

vkoppunuru_0-1665001557735.png

 

Can you share your solution.

It will be very helpful.

AlexisOlson
Super User
Super User

Based on the sources below, the first thing I'd recommend is making sure Power BI is up to date.

 

https://community.powerbi.com/t5/Desktop/Error-The-value-is-not-a-cube-While-connecting-the-SAP-HANA...

https://windowsreport.com/value-errors-power-bi/

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors