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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
mb0307
Responsive Resident
Responsive Resident

Error: convert the value to type List.

Hi

 

Here is a table called FridayTable

Error.jpg

 

and this is my code to concatenate a column values into one line text here:

 

{Cube.ApplyParameter, "[!V000004]", {"""" & Text.Combine(FridayTable[DateCol],""", """) & """" }},

 

 

 

and Error I get:

Error2.jpg

 

 

How can I fix this?

 

Thanks a lot.

1 ACCEPTED SOLUTION
mb0307
Responsive Resident
Responsive Resident

Thank you and other for looking into this but I have managed to find alrenative solution that worked.

 

{Cube.ApplyParameter, "[!V000004]", {{ #"Date1" & "", "" & #"Date2" & "", "" & #"Date3" }}},

 

Date1, Date2 and Date3 are separate queries of text type. 

 

Thanks again.

View solution in original post

8 REPLIES 8
mb0307
Responsive Resident
Responsive Resident

Thank you and other for looking into this but I have managed to find alrenative solution that worked.

 

{Cube.ApplyParameter, "[!V000004]", {{ #"Date1" & "", "" & #"Date2" & "", "" & #"Date3" }}},

 

Date1, Date2 and Date3 are separate queries of text type. 

 

Thanks again.

goncalogeraldes
Super User
Super User

Hello there @mb0307 ! The solution I am gonna give is not a good pratice since you should always provide a specific type of data for a column. Nevertheless, try the following:

= Table.TransformColumnTypes(#"Previous Step",{{"Column Name", type any}})

Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!

You can also check out my LinkedIn!

Best regards,
Gonçalo Geraldes

CNENFRNL
Community Champion
Community Champion

Keep the format of [DateCol] as text, then

Text.Combine(FridayTable[DateCol], ", ")

Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

mb0307
Responsive Resident
Responsive Resident

@CNENFRNL Thanks.  New error:

 

Expression.Error: We cannot convert the value "20200731, 20200828, ..." to type List.
Details:
Value=20200731, 20200828, 20200925, 20201030, 20201127, 20201225, 20210129, 20210226, 20210326, 20210430, 20210528, 20210625, 20210730, 20210827, 20210924
Type=[Type]

BA_Pete
Super User
Super User

Hi @mb0307 ,

 

Try putting curly braces around your column reference:

Text.Combine( {FridayTable[DateCol]} ,""", """)

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




mb0307
Responsive Resident
Responsive Resident

@BA_Pete  Thanks but now I get this error

 

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

 

Ok, try this:

Text.Combine( {Text.From(FridayTable[DateCol])} ,""", """)

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




mb0307
Responsive Resident
Responsive Resident

@BA_Pete  Same error again. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors