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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Table to Filter Out Items Without Transactions

The goal is to have a table which will remove items that have not had transactions over 3 weeks. Currently, I have a table which highlights weekly transactions of items >>> Current week vs. Previous week. There can be items which will have no transactions. Problem is that there are hundreds of items and my current table can have an vast amount of items that have not recorded any transactions. Although my current output provides all of the information needed, visually it is not appealing with so many items/rows reflected without any transactions. I am aware that I can filter the rows to reflect Transaction_Count > 0. But not sure how to put another condition that flags 0 transactions over 3 weeks.

 

Is it possible to filter out items (and/or rows) which have not recorded any transactions over 3 weeks ? Your advice is greatly appreciated. 

 

Current Output: Please note Item_Code: A1 / A5 >>> A1 + A5 have not recorded any transactions over the past 3 weeks. 

Item_CodeFiscal_Week_YearFW_StartOfWeekTransaction_CountPrev_Week_Count
A1FW16-2022Monday, December 13, 202100
A2FW16-2022Monday, December 13, 2021012
A3FW16-2022Monday, December 13, 2021500
A4FW16-2022Monday, December 13, 2021312
A5FW16-2022Monday, December 13, 202100
A1FW15-2022Monday, December 06, 202100
A2FW15-2022Monday, December 06, 2021123
A3FW15-2022Monday, December 06, 202100
A4FW15-2022Monday, December 06, 2021120
A5FW15-2022Monday, December 06, 202100
A1FW14-2022Monday, November 29, 202100
A2FW14-2022Monday, November 29, 2021311
A3FW14-2022Monday, November 29, 202109
A4FW14-2022Monday, November 29, 2021021
A5FW14-2022Monday, November 29, 202101

Expected Output: Please note Item_Code: A1 / A5 >>> A1 + A5 have been removed because there no transactions recorded. 

Item_CodeFiscal_Week_YearFW_StartOfWeekTransaction_CountPrev_Week_Count
A2FW16-2022Monday, December 13, 2021012
A3FW16-2022Monday, December 13, 2021500
A4FW16-2022Monday, December 13, 2021312
A2FW15-2022Monday, December 06, 2021123
A3FW15-2022Monday, December 06, 202100
A4FW15-2022Monday, December 06, 2021120
A2FW14-2022Monday, November 29, 2021311
A3FW14-2022Monday, November 29, 202109
A4FW14-2022Monday, November 29, 2021021
A5FW14-2022Monday, November 29, 202101
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , create   a measure for 3 weeks and use that in visual level flter check >0 and noy is blank

 

Rolling 3 week = CALCULATE(sum(Table[Transaction_Count]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-21,Day))

 

in visual lvele filter check Rolling 3 week  >0 and Rolling 3 week  is not blank

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , create   a measure for 3 weeks and use that in visual level flter check >0 and noy is blank

 

Rolling 3 week = CALCULATE(sum(Table[Transaction_Count]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-21,Day))

 

in visual lvele filter check Rolling 3 week  >0 and Rolling 3 week  is not blank

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak thank you so much for your support! This worked great! So much gratitude! 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.