Forum Discussion

RAKESH1986's avatar
RAKESH1986
Helper II
3 years ago

Unable to Upload multisheet excel file

hi,

 

i have three sheet in excel file but i can see only single sheet after upload,  could you help me how to load all sheet.

 

let
Source = Folder.Files("C:\z_backup\Desktop\Timesheet\EPAAF"),
#"Filtered Hidden Files1" = Table.SelectRows(Source, each [Attributes]?[Hidden]? <> true),
#"Filtered Hidden Files2" = Table.SelectRows(#"Filtered Hidden Files1", each [Attributes]?[Hidden]? <> true),
#"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files2", "Transform File (3)", each #"Transform File (3)"([Content])),
#"Renamed Columns1" = Table.RenameColumns(#"Invoke Custom Function1", {"Name", "Source.Name"}),
#"Removed Other Columns1" = Table.SelectColumns(#"Renamed Columns1", {"Source.Name", "Transform File (3)"}),
#"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File (3)", Table.ColumnNames(#"Transform File (3)"(#"Sample File (3)"))),
#"Changed Type" = Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"Unique", type text}, {"WeekName", type text}, {"WeekNo", Int64.Type}, {"WeekStart", type date}, {"WeekEnd", type date}, {"EmpNO", type text}, {"EmpName", type text}, {"JobTitle", type text}, {"MMRNo", type text}, {"Rev", Int64.Type}, {"EmpStatus", type text}, {"PlanMob", type date}, {"PlanDemob", type date}, {"ActualMob", type date}, {"ActualDemob", type date}, {"Discipline", type text}, {"WorkLocation", type text}, {"CBSCode", type text}, {"CBSDesc", type text}, {"AFEType", type text}, {"wd1", type number}, {"wd2", type number}, {"wd3", type number}, {"wd4", type number}, {"wd5", type number}, {"wd6", type number}, {"wd7", Int64.Type}, {"wd8", type any}, {"wd9", type any}, {"wd10", type any}, {"TotalHrs", type number}, {"Remarks", type text}, {"5 Days Total Hrs", type number}})
in
#"Changed Type"

 

this file has three sheets.

 

 

i can see one sheet records here, not all three sheet..

 

 

pls help me to resolve this issue.

 

 

 

 

2 Replies

  •  

    The 3 sheets have the same structure ? Can the number of sheets change ?  

     

    ______________________________________________________

    If you found this post helpful, please give Kudos C

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi RAKESH1986 ,

     

    1. Go to the Source step, does it show the three workbook tables here?

     

    2. If it is an .xls file please save it as an .xlsx file and then connect it.

     

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum