Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Use power query to split csv file not multiple tables

Hi,  I have used power query in the past but am not an expert. I have a fold of logs that I want to import into PBI to create a dashboard. The log files have multiple tables on one sheet. (see examp...
  • Anonymous's avatar
    Anonymous
    5 years ago

     

     

     

     

     

        #"Raggruppate righe" = Table.Group(YOUR_LAST_STEP, {"Attendee Report", "Column3"}, {{"all", each Table.PromoteHeaders(Table.Skip(_))}},GroupKind.Local,(x,y)=>Number.From(x[Column3]<>null or y[Column3]=null)),
        #"Rimosse colonne" = Table.RemoveColumns(#"Raggruppate righe",{"Column3"})
    in
        #"Rimosse colonne"
    
      

    it is not clear to me where (in what statement) you get the error you report. My code is just pretty much the following two lines. Load the table you want and queue these lines by adapting the name YOUR_LAST_STEP. In theory, one could also make a function of these lines, if it were useful.