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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
sa34techer
Helper II
Helper II

Combine Different Excel Worksheets Tabs similar Names

How to point power query to the worksheet names with CPE in it from the examples below?   Some excels will have one worksheet and others will have multiple sheets.    I need to ensure i am exclsively importing the ones with CPE in it.   I noticed the worksheet range with CPE can sometimes vary if other data sources are added. 

1st Excel

sa34techer_0-1733772676075.png

 FY24 ActualFY24 Budget
Hotdog Revenues  
Mustard $ 22,185,572 $ 23,287,692
Ketchup58,189,099    58,727,097
Cheese  (34,815,115)  (23,588,891)
Total French Fry Revenues $ 45,559,556 $ 58,425,898
Non-Cardbord Adjustments  
Non-Rents $    (356,779)       (534,387)
Non-Grease                     -                     -
Pan Fees       (884,122)    (1,191,249)
Sandwitch Bag fees         (39,581)                     -
Boxes       (851,142)    (1,279,014)
Total Workboots    (2,131,624)    (3,004,650)
Total Nikes  $ 43,427,932 $ 55,421,248
Total Trashbags     13,831,31914,168,400
Corp $            3.14 $            3.91

 

2nd Excel

sa34techer_1-1733772724078.png

 FY24 ActualFY24 Budget
Hotdog Revenues  
Mustard $        44,444 $ 23,287,692
Ketchup58,189,099    58,727,097
Cheese  (34,815,115)  (23,588,891)
Total French Fry Revenues $ 23,418,428 $             444
Non-Cardbord Adjustments  
Non-Rents $    (356,779)       (534,387)
Non-Grease                     -                     -
Pan Fees       (884,122)    (1,191,249)
Sandwitch Bag fees         (39,581)                     -
Boxes       (851,142)             4,444
Total Workboots    (2,131,624)    (1,721,192)
Total Nikes  $ 21,286,804 $ (1,720,748)
Total Trashbags     13,831,31914,168,400
Corp $            1.54 $          (0.12)

3rd Excel

sa34techer_2-1733772801964.png

 FY25 ActualFY25 Budget
Hotdog Revenues  
Mustard $       567,898 $ 23,287,692
Ketchup323,443    58,727,097
Cheese    (34,815,115)  (23,588,891)
Total French Fry Revenues $ (33,923,774) $             444
Non-Cardbord Adjustments  
Non-Rents $      (356,779)       (534,387)
Non-Grease                      -                     -
Pan Fees         (884,122)    (1,191,249)
Sandwitch Bag fees           (39,581)                     -
Boxes         (851,142)             4,444
Total Workboots      (2,131,624)    (1,721,192)
Total Nikes  $ (36,055,398) $ (1,720,748)
Total Trashbags      13,831,31914,168,400
Corp $            (2.61) $          (0.12)

 

1 ACCEPTED SOLUTION
Tutu_in_YYC
Super User
Super User

Use the Get data > Folder, and then just connect to one of sheet with CPE .You will get a mixed of data and errors in the end query, but we will fix it.

 

Now go to Transform Sample File query, and delete Navigation step.

 

Tutu_in_YYC_3-1733793150103.png

 

 

then go Source and click the drop down option on the column Name.

Tutu_in_YYC_4-1733793203645.png

 

 

Then choose Text Filter and Contains...

 

Tutu_in_YYC_1-1733792813857.png


Configure : contains CPE, and hit OK

Tutu_in_YYC_2-1733792853042.png

 

Then go to the column Data and expand.

Tutu_in_YYC_5-1733793296323.png

 

Uncheck Use original.... and hit ok

 

Tutu_in_YYC_6-1733793344908.png

 

Now go back to the main query.. you should see Name will contain different flavors of CPE.

Tutu_in_YYC_7-1733793422171.png

 

 

View solution in original post

1 REPLY 1
Tutu_in_YYC
Super User
Super User

Use the Get data > Folder, and then just connect to one of sheet with CPE .You will get a mixed of data and errors in the end query, but we will fix it.

 

Now go to Transform Sample File query, and delete Navigation step.

 

Tutu_in_YYC_3-1733793150103.png

 

 

then go Source and click the drop down option on the column Name.

Tutu_in_YYC_4-1733793203645.png

 

 

Then choose Text Filter and Contains...

 

Tutu_in_YYC_1-1733792813857.png


Configure : contains CPE, and hit OK

Tutu_in_YYC_2-1733792853042.png

 

Then go to the column Data and expand.

Tutu_in_YYC_5-1733793296323.png

 

Uncheck Use original.... and hit ok

 

Tutu_in_YYC_6-1733793344908.png

 

Now go back to the main query.. you should see Name will contain different flavors of CPE.

Tutu_in_YYC_7-1733793422171.png

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.