Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a Dataflow ingesting/combining a folder full of excel files from sharepoint. The files are dropped by another user, and sometimes its a single sheet but sometimes its two sheets...with the data on the second one.
I know I can ingest using the sheet index e.g., a single sheet file is index 0, and not have to worry about sheet names. The problem is I would sometimes need index 0 and sometimes index 1.
Is there a way to check, file-by-file, how many sheets there are and adjust the sheet index accordingly?
I can think of several workarounds outside PQ but as a rule I'd like to engineer around this sort of thing.
Two potential approaches:
1. use try ... otherwise - try on index 1 and do index 0 in the otherwise
2. keep them both and then use the max row for each workbook with Table.Max
Pat
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
7 | |
6 | |
6 | |
6 |