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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
tb86
Frequent Visitor

Cube.ApplyParameter Multiple Values

Hi,

 

I'm trying to pass multiple values parameters to SAP BW by usig a text parameter. 

 

If i write the multiple values hard in "Cube.ApplyParameter" like

 

{Cube.ApplyParameter, "[P_PRJ]", {{"ProjA", "ProjB", "ProjC"}}},

 

It works, but if i decline a variable or parameter with the same text and pass it into Cube.Applyparamter, error messages appear, that multiple values are not allowed or it is a invalid MDX command.

 

#"var Proj" = Text.Combine({"ProjA", "ProjB,", "ProjC"},","),

 

"""ProjA"", ""ProjB"", ""ProjC""" meta [IsParameterQuery=true, Type="Text", IsParameterQueryRequired=false]

 

I would be very thankful for tips or solutions!

2 REPLIES 2
tb86
Frequent Visitor

Hi Winniz, 

thanks für your anwer, but if use a list instead of the parameter it appears following error:

 

Expression.Error: We cannot convert a value of type List to type Text.
Details:
Value=[List]
Type=[Type]

v-kkf-msft
Community Support
Community Support

Hi @tb86 ,

 

{{"ProjA", "ProjB", "ProjC"}} is a list, but the output value of your variable is not a list.

 

vkkfmsft_1-1662702110431.png

vkkfmsft_0-1662702076229.png

 

Best Regards,
Winniz

 

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.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.