This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
My card visual should show total errors from the previous day's accounts but it's returning 'blank':
I've used the following measure for the field value:
Do I need to rename fields or tables in the DAX measure?
Solved! Go to Solution.
You can use the following adjusted DAX expression:
Error Count =
VAR CurrentDate = TODAY()
VAR PrevDay = CurrentDate - 1
VAR DayOfWeek = WEEKDAY(CurrentDate, 2) -- 2 = Monday, 7 = Sunday
VAR SelectedDate =
IF(
DayOfWeek = 1, -- If today is Monday, check for Friday's data
CurrentDate - 3,
PrevDay
)
RETURN
CALCULATE(
COUNTROWS('Table'),
'Table'[Date] = SelectedDate,
'Table'[Status] = "Error"
)
The results are as follows:
Best Regards
hackcrr
If I have answered your question, please mark my reply as solution and kudos to this post, thank you!
Great! It worked! Thank you for your help!
You can use the following adjusted DAX expression:
Error Count =
VAR CurrentDate = TODAY()
VAR PrevDay = CurrentDate - 1
VAR DayOfWeek = WEEKDAY(CurrentDate, 2) -- 2 = Monday, 7 = Sunday
VAR SelectedDate =
IF(
DayOfWeek = 1, -- If today is Monday, check for Friday's data
CurrentDate - 3,
PrevDay
)
RETURN
CALCULATE(
COUNTROWS('Table'),
'Table'[Date] = SelectedDate,
'Table'[Status] = "Error"
)
The results are as follows:
Best Regards
hackcrr
If I have answered your question, please mark my reply as solution and kudos to this post, thank you!
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 22 | |
| 22 | |
| 21 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 55 | |
| 54 | |
| 47 | |
| 26 | |
| 24 |