Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have a table that has a status column and it lists the following three options:
In Progress
Complete
Late
I want to count only the number of items listed as In Progress and Late.
I know how to do it for one, but don't know how to calculate the number of items for more than one status.
Solved! Go to Solution.
Hi,
I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
I hope the below sample can provide some ideas on how to create a solution for your datamodel.
Progress or late count measure: =
COUNTROWS ( FILTER ( Project, Project[Status] IN { "In Progress", "Late" } ) )
Hi,
I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
I hope the below sample can provide some ideas on how to create a solution for your datamodel.
Progress or late count measure: =
COUNTROWS ( FILTER ( Project, Project[Status] IN { "In Progress", "Late" } ) )
Hi @Anonymous !
You can do the following:
CALCULATE(
COUNT( ItemsColumn ),
StatusColumn IN {"In Progress", "Late"}
)
Let me know if that helps!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 39 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |