Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
JeevanMallya
Resolver II
Resolver II

Filter rows in query editor up to current Week

I have a Table that contains Columns "Project_Key", "YEAR", "WEEK_NUM", "REPORTED_CUMMULATIVE", "CLOSED_CUMMULATIVE", "INDEX".

We have the Year and Week_NUM that has Future Weeks till 53. Reported and Closed Cummulative fills down in case of Null values.

So here the requirement is to Filter Rows untill Current Week so that we stop showing data all Future Weeks in Table and Ultimately on Dashboard. I know it can be done manually by doing Filtering but looking for Power Queries to do that automatically.

 

PROJECT_KEYYEARWEEK_NUMREPORTED_CUMMULATIVECLOSED_CUMMULATIVEIndex
ABC20221001
ABC20222002
ABC20223003
ABC20224004
ABC20225005
ABC20226006
ABC20227007
ABC20228008
ABC20229009
ABC2022100010
ABC2022110011
ABC2022120012
ABC2022130013
ABC2022140014
ABC2022150015
ABC2022160016
ABC2022170017
ABC2022180018
ABC2022190019
ABC2022200020
ABC2022210021
ABC2022220022
ABC2022230023
ABC2022240024
ABC2022250025
ABC2022260026
ABC2022270027
ABC2022280028
ABC2022290029
ABC2022300030
ABC2022310031
ABC2022320032
ABC2022330033
ABC2022340034
ABC2022350035
ABC2022360036
ABC2022370037
ABC2022380038
ABC2022390039
ABC2022400040
ABC2022410041
ABC2022420042
ABC2022430043
ABC2022440044
ABC2022451045
ABC2022464046
ABC2022479047
ABC20224820048
ABC20224934049
ABC20225038150
ABC20225146151
ABC20225251252
ABC20225352253
ABC2023152254
ABC2023254355
ABC2023358756
ABC2023463857
ABC2023563858
ABC2023665859
ABC20237691460
ABC20238711661
ABC20239721862
ABC202310762263
ABC202311772364
ABC202312822665
ABC202313832866
ABC202314872967
ABC202315893268
ABC202316963369
ABC2023171033870
ABC2023181034071
ABC2023191094572
ABC2023201124973
ABC2023211165174
ABC2023221195675
ABC2023231205776
ABC2023241216377
ABC2023251256878
ABC2023261266979
ABC2023271267480
ABC2023281267681
ABC2023291287882
ABC2023301288383
ABC2023311288484
ABC2023321298585
ABC2023331328886
ABC2023341338987
ABC2023351339188
ABC2023361339389
ABC2023371349590
ABC2023381349691
ABC2023391409692
ABC20234014610093
ABC20234114610394
ABC20234214710595
ABC20234314710696
ABC20234414810997
ABC20234514810998
ABC20234614911099
ABC202347152113100
ABC202348153117101
ABC202349155122102
ABC202350158123103
ABC202351160124104
ABC202352161126105
ABC202353161126106
ABC20241161127107
ABC20242161127108
ABC20243161128109
ABC20244163128110
ABC20245164129111
ABC20246164129112
ABC20247164129113
ABC20248164129114
ABC20249164129115
ABC202410164129116
ABC202411164129117
ABC202412164129118
ABC202413164129119
ABC202414164129120
ABC202415164129121
ABC202416164129122
ABC202417164129123
ABC202418164129124
ABC202419164129125
ABC202420164129126
ABC202421164129127
ABC202422164129128
ABC202423164129129
ABC202424164129130
ABC202425164129131
ABC202426164129132
ABC202427164129133
ABC202428164129134
ABC202429164129135
ABC202430164129136
ABC202431164129137
ABC202432164129138
ABC202433164129139
ABC202434164129140
ABC202435164129141
ABC202436164129142
ABC202437164129143
ABC202438164129144
ABC202439164129145
ABC202440164129146
ABC202441164129147
ABC202442164129148
ABC202443164129149
ABC202444164129150
ABC202445164129151
ABC202446164129152
ABC202447164129153
ABC202448164129154
ABC202449164129155
ABC202450164129156
ABC202451164129157
ABC202452164129158
ABC202453164129159
1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

 

View solution in original post

1 REPLY 1
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.