This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
Hi ,
I am new to PowerBI. I have a question related to filters. I want to calulate the count of Id's only if my Status column has 'Failed' as its value. If 'Failed' value is not flowing into the report, I need to show '0' else count(Id). Any help is much appreciated. Thanks in advance
--Jyothi Sree
Solved! Go to Solution.
@Anonymous , Try a measure like
calculate(count(Table[Id]), filter(Table, Table[Status] ="Failed"))
or in your existing measure add +0
example
count(Table[Id]) +0
@Anonymous , Try a measure like
calculate(count(Table[Id]), filter(Table, Table[Status] ="Failed"))
or in your existing measure add +0
example
count(Table[Id]) +0
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 45 | |
| 38 | |
| 24 | |
| 22 | |
| 20 |