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

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.

Reply
Bobby_Singh
New Member

Combining Numbers List in Power Query

Hi All,

Posting my first question to community. Thank you for your help in advance.

 

I have facing a unique problem where i have a list of numbers Data type, for example as follwong

List

10022701

10023720

11193033

 

and this a list of 150 records and the Data type is Number.

Now I need to combine these numbers to pass it to the Snowflake query

End result I need is '10022701' , '10023720' , '11193033'

 

I know one way to do this is to convert this list to Text type first, Number.ToText and then use Text.Combine({ Passlist, " ', "})

 

But this way final result numbers are of text type which snowflak is not accepting.

 

I want to combine Number list only as '10022701' , '10023720' , '11193033' so that accessence of the numbers or not Text type but number type to retrive the data from snowflake to Power Query.



1 ACCEPTED SOLUTION

Hi @Bobby_Singh you can either set privacy level or ignore that in power query settings. Read this article.


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Bobby_Singh 

You can put the following code to advanced editor in power query first.

let
    a={10022701,10023720,11193033},
    b=List.Transform(a,each "'"&Text.From(_)&"'"),
    c=Text.Combine(b,",")
in
    c

Output

vxinruzhumsft_0-1710466712058.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-xinruzhu-msft 

 

I tried Text.Combine function, for example in aforementioned solution, if you take List C

Items_List = c,

Source = Select * from ABC_Table
where
INVENTORY_ITEM_ID in (" & Items_List & " )

____________________________________________________________

 

then this code throw me following error

 

Formula.Firewall: Query 'Inventory Data (2)' (step 'Renamed Columns') references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.

 

Bobby_Singh_0-1710488243819.png

 

Hi @Bobby_Singh you can either set privacy level or ignore that in power query settings. Read this article.


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Thank you @dufoq3 

 

This solution did help, combining two queries to one.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors