cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Jeffery24 Helper I
Helper I

Use parameter value as custom column

 

Hi,

How would I pass a parameter as just a number in an added column.

For example if parameter is set at 0.85Test.jpg

How would I add the value of the parameter as column value?

 

Test.jpg= Table.AddColumn(#"Added Custom1", "Vendor KPI", each 0.85)

Thanks for your help. 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Re: Use parameter value as custom column

@Jeffery24

 

= Table.AddColumn(#"Added Custom1", "Vendor KPI", each #"Vendor KPI")
Try my new Power BI game Cross the River

View solution in original post

5 REPLIES 5
Super User III
Super User III

Re: Use parameter value as custom column

@Jeffery24

 

= Table.AddColumn(#"Added Custom1", "Vendor KPI", each #"Vendor KPI")
Try my new Power BI game Cross the River

View solution in original post

Jeffery24 Helper I
Helper I

Re: Use parameter value as custom column

Hi,

 

Thanks for quick reply. I tried a similar format earlier but keep getting a "Token Comma Expected" error.Capture.JPGIs it expecting "" around the Vendor KPI parameter or brackets because it has a space in the name? When i tried it just listed it as a string result not the value. Thanks

 

 

 

Jeffery24 Helper I
Helper I

Re: Use parameter value as custom column

Hi,

 

Sorry missed the # sign! Works great. Thanks

Mr_Glister Helper I
Helper I

Re: Use parameter value as custom column

Thanks for providing the answer! I've been looking for a while but can't quite find a good explanation what the hashtag (#) does in M language. Is it specifically for calling a parameter?

Jeffery24 Helper I
Helper I

Re: Use parameter value as custom column

@Mr_Glister, Sorry for late reply. Am no expert but I think it is using the # to call a variable with a space in the name.

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We've launched a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Top Solution Authors
Top Kudoed Authors