sto provando a passare il nome di una colonna ad un filtro da una variabile ma qualcosa mi sfugge poichè, pur non andando in errore, la query mi restituisce un risultato vuoto.
Grazie
File allegato.
Codice: Seleziona tutto
let
NOME_COL = Excel.CurrentWorkbook(){[Name="Tb_Filtro"]}[Content],
FILTRO_NOME = Table.TransformColumnTypes(NOME_COL,{{"PERIODO", type text}}),
PERIODO = FILTRO_NOME{0}[PERIODO],
Origine = Excel.CurrentWorkbook(){[Name="Tb_Dati"]}[Content],
#"Modificato tipo" = Table.TransformColumnTypes(Origine,{{"NOME", type text}, {"DATA", type date}, {"QUINDICI", type text}, {"TRENTA", type text}}),
#"Filtrate righe" = Table.SelectRows(#"Modificato tipo", each (PERIODO = "SI"))
in
#"Filtrate righe"