Forum Discussion
Filter data in Advanced Editor
- 6 years ago
Hi Anonymous ,
You could filter date directly like below:
Or you could create a parameter to filter it. When you want to set other date range, you could only change the parameters.
let Source = Excel.Workbook(File.Contents("C:\Users\xueding\Desktop\Financial Sample - Copy.xlsx"), null, true), financials3_Table = Source{[Item="financials3",Kind="Table"]}[Data], #"Changed Type" = Table.TransformColumnTypes(financials3_Table,{{"Segment", type text}, {"Country", type text}, {"Product", type text}, {"Units Sold", type number}, {"Manufacturing Price", Int64.Type}, {"Sales", Int64.Type}, {"Date", type date}}), #"Filtered Rows" = Table.SelectRows(#"Changed Type", each [Date] > Date) in #"Filtered Rows"
HI Anonymous ,
You can refer this video.
https://www.youtube.com/watch?v=qdhsq23cQhg
Regards,
Harsh Nathani
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
- Anonymous6 years agoNot applicable
Hi Anonymous,
Thank you for the video. I watched it and this option didn't work for my case, but I will try something similar or try to addTable.SelectRows function.
Best,- v-xuding-msft6 years agoCommunity Support
Hi Anonymous ,
You could filter date directly like below:
Or you could create a parameter to filter it. When you want to set other date range, you could only change the parameters.
let Source = Excel.Workbook(File.Contents("C:\Users\xueding\Desktop\Financial Sample - Copy.xlsx"), null, true), financials3_Table = Source{[Item="financials3",Kind="Table"]}[Data], #"Changed Type" = Table.TransformColumnTypes(financials3_Table,{{"Segment", type text}, {"Country", type text}, {"Product", type text}, {"Units Sold", type number}, {"Manufacturing Price", Int64.Type}, {"Sales", Int64.Type}, {"Date", type date}}), #"Filtered Rows" = Table.SelectRows(#"Changed Type", each [Date] > Date) in #"Filtered Rows"- Anonymous6 years agoNot applicable
Hi v-xuding-msft ,
Thank you a lot. This way worked!
Best,
E.