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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
win_anthony
Resolver III
Resolver III

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

@win_anthony , 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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@win_anthony , 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

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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