Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear Community !
My data has columns names as the first day of each month (ex: 1/1/2019, 2/1/2019, 3/1/2019 etc) - 12 Columns for an year.
Need your help to figure out how to remove columns whose names DO NOT CONTAIN current year (2023 in this case), however, I don't want to hardcode the year. Currently I am using below, which solves the purpose, by using multiple lines for each year, however, I was looking for one PQ function.
Any help is welcome ! Thanks in advance !
= Table.RemoveColumns(#"Changed Type1",List.FindText(Table.ColumnNames(#"Changed Type1"),"2019"))
Solved! Go to Solution.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 35 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 137 | |
| 102 | |
| 71 | |
| 67 | |
| 65 |