desklamp33
New Member
- Joined
- Oct 7, 2022
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
Hello!
I need to count unique values based on two criteria and this is the formula I've come up with. It successfully gets what I want, EXCEPT it returns a 1 when it should be returning a 0. I tried adding in an IFERROR function so that it doesn't count any #N/A's that the FILTER function returns but that is not working.
=COUNTA(UNIQUE(IFERROR(FILTER(2021_sales[SKU],(2021_sales[Price Bucket]=[@[Price Bucket]])*(2021_sales[Subcategory]=[@Subcategory])),"")))
Thank you!
I need to count unique values based on two criteria and this is the formula I've come up with. It successfully gets what I want, EXCEPT it returns a 1 when it should be returning a 0. I tried adding in an IFERROR function so that it doesn't count any #N/A's that the FILTER function returns but that is not working.
=COUNTA(UNIQUE(IFERROR(FILTER(2021_sales[SKU],(2021_sales[Price Bucket]=[@[Price Bucket]])*(2021_sales[Subcategory]=[@Subcategory])),"")))
Thank you!