Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Status Column

Hello,

 

I'm working with a database pull that has a status column as items are revised. Start, middle, complete.

 

As they're going through the revision proces and are at step two, step three isn't complete. How can I tell what items have all three statuses and use it in calculations

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Assume you have a table as below:

Capture14.JPG

Create measures

count_status = CALCULATE(DISTINCTCOUNT('Table'[status]),ALLEXCEPT('Table','Table'[id]))

This measure count the numbers of status for each item.

then you can use the measure above to calculate how many items have all three statuses.

use in calculation = CALCULATE(DISTINCTCOUNT('Table'[id]),FILTER(ALLSELECTED('Table'),'Table'[count_status]=3))
 
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Assume you have a table as below:

Capture14.JPG

Create measures

count_status = CALCULATE(DISTINCTCOUNT('Table'[status]),ALLEXCEPT('Table','Table'[id]))

This measure count the numbers of status for each item.

then you can use the measure above to calculate how many items have all three statuses.

use in calculation = CALCULATE(DISTINCTCOUNT('Table'[id]),FILTER(ALLSELECTED('Table'),'Table'[count_status]=3))
 
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
parry2k
Super User
Super User

@Anonymous you can create a measure like this to count # of status, if it is 3 then all steps are completed

 

Item Steps Completed = 
CALCULATE ( COUNTROWS ( Table ) , 
ALLEXCEPT ( Table, Table[Item] ) ,
Table[Status] = "Start",
Table[Status] = "Middle",
Table[Status] = "Complete"
)

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

What should table[item] be

@Anonymous sorry for some reason notifications are not working and I didn't know you replied to the post. Item is the column for which you want to check the Status



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.