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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
WTR
Frequent Visitor

Matrix Visual, filter out row based on column values

Hey everyone

 

I'm new to PowerBI and was wondering how to apply DAX filters.

I have created a Matrix Visual based on some field from one table.

The columns consist of item categories and rows are sales order IDs. 

 

OrderIDComputersMonitorsLaptopsTotal
123£2,490.00  £2,490.00
124£3,422.00  £3,422.00
125£2,430.00£212.00 £2,642.00
126  £420.00£420.00

 

Is it possible to for example only show the rows where there is a value in Laptops, or when an sales order has both Computers and Monitors?

 

I feel like it's a very basic thing, yet I am unable to solve this.

 

Many thanks

3 REPLIES 3
Shaurya
Memorable Member
Memorable Member

Hi @WTR,

 

You can go the Filters pane and add fields from your data. So let's say you want to see rows only if there is a sale in Laptops then set Categories to Laptop and so on, based on your requirements.

 

Screenshot 2022-11-16 225730.jpg

 

Did I answer your question? Mark this post as a solution if I did!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI

WTR
Frequent Visitor

Hey Shaurya,

 

This still doesn't fix my problem. Perhaps I didn't write down my issue properly.

Assume the following table:

 

OrderIDComputerMonitorsLaptopsAccessoiresSoftwareTotal

123

2245     
1242567124 5010 
156 250 1050 
167  250   
1781202199 59  
198990     

 

I want to display only the rows where there's a value in atleast Computer AND Monitors. (other combinations could eventually also be applied.) 

 

The result I'm looking for is:

 

OrderIDComputerMonitorsLaptopsAccessoiresSoftwareTotal
1242567124 5010 
1781202199 59  

 

Is this possible?

Hi @WTR ,

Are the data you provided the results presented in the matrix? Is it possible to provide the original table so that your matrix can be reproduced locally?

 

 

Best Regards

Lucien

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.