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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Nikhil_567
Helper I
Helper I

Show a single row for combination of columns of a matrix visual

Hi All,

I have situation where I need to show the matrix visual like below-

Nikhil_567_1-1735818902316.png

For each unique comibnation of Market, Data Source & Refresh date, if any of the status is Fail, then the matrix visual should show just the row with Fail status.

Please help.

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-nuoc-msft
Community Support
Community Support

Hi @Nikhil_567 

 

Thank you very much bhanu_gautam for your prompt reply.

 

I am sure bhanu_gautam's reply can help you to solve your problem, here allow me to share something.

 

Here's some dummy data

 

“Table”

vnuocmsft_0-1735873088269.png

 

Create a measure.

 

Measure Status = 
IF(
    CALCULATE(COUNTROWS('Table'), 'Table'[Status] = "Fail") > 0,
    "Fail",
    "Pass"
)

 

Here is the result.

 

vnuocmsft_1-1735873150150.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

bhanu_gautam
Super User
Super User

@Nikhil_567 , First Drag the Market, Data Source, and Refresh Date fields to the Rows area of the Matrix visual.
Add the Status field to the Values area.

 

You need to create a measure that checks if any of the statuses for a combination of Market, Data Source, and Refresh Date is "Fail". You can use the following DAX formula to create this measure:

DAX
FailStatus =
IF(
HASONEVALUE('YourTable'[Market]) &&
HASONEVALUE('YourTable'[Data Source]) &&
HASONEVALUE('YourTable'[Refresh Date]),
IF(
CALCULATE(
COUNTROWS('YourTable'),
'YourTable'[Status] = "Fail"
) > 0,
"Fail",
"Pass"
),
BLANK()
)

 

Drag the FailStatus measure to the Values area of the Matrix visual.

 

Apply a visual-level filter to the Matrix visual to only show rows where FailStatus is "Fail".

 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hi @bhanu_gautam 

Thanks for taking out time to help me out here!!

However, if we apply a visual level filter on the matrix. I believe it will only show the failed records.

Please note that, if all the status is Pass for the combination of the mentioned column, then it should show as Pass.

I forgot to mention that.

Create a measure to determine the status:

 

DAX
FailStatus =
IF(
HASONEVALUE('YourTable'[Market]) &&
HASONEVALUE('YourTable'[Data Source]) &&
HASONEVALUE('YourTable'[Refresh Date]),
IF(
CALCULATE(
COUNTROWS('YourTable'),
'YourTable'[Status] = "Fail"
) > 0,
"Fail",
"Pass"
),
BLANK()
)

 

Drag the Market, Data Source, and Refresh Date fields to the Rows area of the Matrix visual.

Add the FailStatus measure to the Values area of the Matrix visual.

Apply a visual-level filter to the Matrix visual to only show rows where FailStatus is not blank.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.