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

The Fabric community is now in read-only for platform upgrade. Learn more

Reply
Noob_with_PBI
Regular Visitor

Help with visualization

Hello All,

 

I am new and learning PowerBI, and have been stuck with something and i hope someone may be able to shine a light 🙂

 

I have a table that has a list of customers and several columns (one per product) that shows whether the customer purchased the specific items. My goal is to be able to use a slicer and select the customer, and on the visualization would show the customer overall business information, i was able to achieve a lot of what i need, but i wanted to show the "biggest opportunity" for that customer, showing in a list the items showing as "0" or blank (they did not purchase). I tried using Matrix or a table, but shows the product names with values below, i wanted it in a list format (1 product per row) without any number, only showing items that did not show any sales. Is there a way to achieve this?

 

Thank You!

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

This depends on the structure of your data. If you had a table with the items that have been purchased, and a list of all items, you could do something like:

CALCULATE(
    COUNTROWS(
        EXCEPT(SELECTCOLUMNS([all_items]), SELECTCOLUMNS([purchased_items])
    )
)

(note: i haven't tested this code) But the idea is that you want to get all of items that haven't been purchased and then ignore all of the ones that have been purchased. Here's the docs on the EXCEPT function: https://learn.microsoft.com/en-us/dax/except-function-dax

View solution in original post

1 REPLY 1
vicky_
Super User
Super User

This depends on the structure of your data. If you had a table with the items that have been purchased, and a list of all items, you could do something like:

CALCULATE(
    COUNTROWS(
        EXCEPT(SELECTCOLUMNS([all_items]), SELECTCOLUMNS([purchased_items])
    )
)

(note: i haven't tested this code) But the idea is that you want to get all of items that haven't been purchased and then ignore all of the ones that have been purchased. Here's the docs on the EXCEPT function: https://learn.microsoft.com/en-us/dax/except-function-dax

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.