Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Experts,
i need small help on an analysis. I am trying to find list of customers who did not buy a particular SKU.
| Transaction table | ||
| Customer_ID | SKU | Sales |
| Cust_1 | SKU_1 | 20 |
| Cust_1 | SKU_1 | 30 |
| Cust_1 | SKU_2 | 40 |
| Cust_1 | SKU_3 | 50 |
| Cust_2 | SKU_1 | 20 |
| Cust_2 | SKU_2 | 30 |
| Cust_2 | SKU_2 | 40 |
| Cust_2 | SKU_2 | 50 |
| Cust_3 | SKU_1 | 20 |
| Cust_3 | SKU_1 | 30 |
| Cust_3 | SKU_3 | 40 |
| Cust_3 | SKU_3 | 50 |
| Customer Table | |
| Customer_ID | Customer_Name |
| Cust_1 | abc |
| Cust_2 | xyz |
| Cust_3 | pqr |
| Cust_4 | def |
| SKU Table | |
| SKU_ID | SKU_Name |
| SKU_1 | big |
| SKU_2 | medium |
| SKU_3 | small |
| SKU_4 | xtra small |
i have these tables and i need to find out count of customers not buying a particular sku out of total buying customers
| Total Buying customers (any SKU) | Customers Not Buying SKU_1 | Customers Not Buying SKU_2 | Customers Not Buying SKU_3 | Customers Not Buying SKU_4 |
| 3 | 1 | 1 | 1 | 3 |
have also attached pbix file. any help would be appreciated.- thanks in advance
Proud to be a Super User!
Hello Negi007,
Here's the link to the solution file. Hope this helps.
https://drive.google.com/file/d/1PXY2EPzRuGlzMtJPtUr658JFZfjMXyxW/view?usp=share_link
@negi007 Should be something like this:
Not Buying Measure =
VAR __SKU = MAX('SKU Table'[SKU_ID])
VAR __Customers = DISTINCT(SELECTCOLUMNS(ALL('Customer Table'),"Customer_ID",[Customer_ID]))
VAR __CustomersBuying = DISTINCT(SELECTCOLUMNS('Transaction table',"Customer_ID",[Customer_ID]))
VAR __Result = COUNTROWS(EXCEPT(__Customers, __CustomersBuying))
RETURN
__Result
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |