Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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"
Solved! Go to Solution.
I managed to get around the error by creating a fuction to pass the parameter 😃
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
Can you share your solution.
It will be very helpful.
Based on the sources below, the first thing I'd recommend is making sure Power BI is up to date.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 14 | |
| 11 | |
| 8 | |
| 7 | |
| 6 |