Forum Discussion

bilogin's avatar
bilogin
Helper I
6 years ago

SUMPRODUCT Power Query to filter blanks

Afternoon,

 

So I've added a pivot table as a data source which looks like this:

 

Concat180118021803180418051806BLANKS
fn123410022 12 36877FALSE
fn1324510022      TRUE
fe13521687511 6 84FALSE

 

 

Concat = Product Code

1801, 1802 etc = Months of the year

 

In Excel, I would paste the pivot into a new tab and add the BLANKS column to see whether the product had been sold. The formula is: 

 

=SUMPRODUCT(--(B836:AF836<>0))=0

 

Is there an alternative I can use?

 

Secondary question: I'm using a pivot table as source data which would be updated one a month to include new sales data. If I create a Custom Column like the one above, would PBI know to insert a column for the new month or would it override the Custom Column? 

2 Replies