The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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.
Solved! Go to Solution.
Hi @Anonymous
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.
Hi,
Share the download link of the PBI file.
Hi @Anonymous
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.
@Anonymous , 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! |
|
User | Count |
---|---|
69 | |
68 | |
66 | |
55 | |
28 |
User | Count |
---|---|
112 | |
82 | |
66 | |
48 | |
43 |