March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hi All,
I have situation where I need to show the matrix visual like below-
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.
Hi,
Share the download link of the PBI file.
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”
Create a measure.
Measure Status =
IF(
CALCULATE(COUNTROWS('Table'), 'Table'[Status] = "Fail") > 0,
"Fail",
"Pass"
)
Here is the result.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@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".
Proud to be a Super User! |
|
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.
Proud to be a Super User! |
|
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
81 | |
63 | |
54 | |
42 |
User | Count |
---|---|
194 | |
106 | |
90 | |
63 | |
51 |