Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Team,
I have to display the processed record count(Success) on selecting a date from the fiter.
For suppose on day 12-06-22 i have 20 failed records and on 13-06-22, 9 got success and 11 got failed.
I need to display 9 on selecting 13-06-22, Likewise for all dates.Thank you in advance...
Best Regards,
Sushma
Solved! Go to Solution.
Hi @SushmaReddy
Suppose you only need to count those "success" ones whose status is "fail" in previous date and do not need to count any new "fail" ones in the selected date. Suppose your dates are continuous in the table. You can use the following measure to count the result.
SwitchToSuccess Count =
var previousFailed = CALCULATETABLE(VALUES('Table (2)'[Product]), 'Table (2)'[Status] = "Failed", PREVIOUSDAY('Table (2)'[Date]))
var switchToSuccess = CALCULATETABLE(VALUES('Table (2)'[Product]), 'Table (2)'[Status] = "Success", 'Table (2)'[Product] IN previousFailed)
return
COUNTROWS(switchToSuccess)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @SushmaReddy
Suppose you only need to count those "success" ones whose status is "fail" in previous date and do not need to count any new "fail" ones in the selected date. Suppose your dates are continuous in the table. You can use the following measure to count the result.
SwitchToSuccess Count =
var previousFailed = CALCULATETABLE(VALUES('Table (2)'[Product]), 'Table (2)'[Status] = "Failed", PREVIOUSDAY('Table (2)'[Date]))
var switchToSuccess = CALCULATETABLE(VALUES('Table (2)'[Product]), 'Table (2)'[Status] = "Success", 'Table (2)'[Product] IN previousFailed)
return
COUNTROWS(switchToSuccess)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Please share the data,
It should be like
Solution=
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |