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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
beaoliv123-_
Helper I
Helper I

Table/Matrix in Power BI with the variables as lines

Hi there, 

 

I need help with the following situation:

I'd like to have a table in Power BI with the total sales by day, as shown in the table below. However, in each day, I would like to know which were the customers who bought. When I'm building the table on Power BI I use "Number of Sales" as values and "Date" and "CustomerID" as lines, so whenever I open each day, I would have a list of my clients who bought on that specific day.  However, instead of having only those ones who bought, I have a list of all my clients, and for those who disn't bought anything, there's a 0.

Taking into account that the list of clients is huge, I would like to ask you if you know a solution to exclude those CustomerID who did not bought in each day.

 

The table below is what I have right now:

 

DateNumber of Sales
01/01/20223
     1234567    2
     1674342    1
     3213345    0

 

And this is what I wanted to have:

 

DateNumber of Sales
01/01/20223
     1234567    2
     1674342    1
2 REPLIES 2
amitchandak
Super User
Super User

@beaoliv123-_ , seem like you measure is having +0 . If so remove that.

 

Of use visual level filter Number of Sales > 0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

 

thanks for your help.

 

The problema is that I have more columns, for example:

 

DateNumber of Sold PensNumber of Sold Pencils
01/01/202243
     5435302
     5498721
     4324320

 

 

If I filter by > 0, then I'll exclude some rows. For example, for the number of sold pens I would exclude from the table the first client, but then it will be removed from the number of sold pencils even though he bought 2.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors