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
I have a daily job where I press the 'date-in' filter on a daily basis (lower left in the report), and I check to see if 'Status' is OK down the list or not.
(here is my actual report)
I want to make this smarter... by having a card that basically says "OK" or "ERROR".
The card must check the latest date (date_in), then it must check to see if all items in 'Status' is OK.
if all items are OK - then type "OK" If it is not ok - then the card must type "ERROR".
How can I achieve this?
thanks in advance
Solved! Go to Solution.
hi @aso1
I'm sorry for my carelessness, please use "," instead of "&&" in the formula
hi @aso1
Create a measure like this
Result =
IF (
CALCULATE ( COUNTA ( 'Table'[Status] ), 'Table'[Status] <> "OK" ) > 0,
"ERROR",
"OK"
)
Then drag this measure into card visual.
Regards,
lin
wow!.. perfect!!.. this works.
however, I just need to filter out 'Tempdb' out. I dont need a check on that database.
if tempdb is out of this list, then I will have 100% OK.
I tried filtering it out in the report .. but that still gave me "ERROR / NOT OK" in the card.
Can you put a exclude in the result, so it wont check for the tempdb database?..
hi @aso1
Adjust the formula as below:
Result =
IF (
CALCULATE ( COUNTA ( 'Table'[Status] ), 'Table'[Status] <> "OK"&&'Table'[database]<> "Tempdb") > 0,
"ERROR",
"OK"
)
Regards,
Lin
getting this error.
hi @aso1
I'm sorry for my carelessness, please use "," instead of "&&" in the formula
@aso1 , you can get last status like
lastnonblankvalue(calllog[Date],max(calllog[status]))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |