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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Marco_88
Helper I
Helper I

Need help tracking activities (Filter, Count, Conditional formatting)

Hi everyone, 

I have a table that tracks the activities of a hotel refurbishmnet.

I have a series of rows corresponding to different activities, done or still to be done, for some rooms. 
I would need to see wich rooms (and how many) have completed all activities, and which ones still remain with work in progress. 

Attach you can find a XLS file with ROOM NUMBER and STATUS columns.

Attached also a little PBIX works on XLS data.

https://drive.google.com/drive/folders/1wxnGcL2OB53ckLdZPglKHihb1_8KBKys?usp=sharing  

For exaple: ROOM n° 1087 has all status DONE so it is complete, Room n° 1088 still has one task to complete (STATUS TO DO).

 

Can you help me?
Thank you

 

Best regards

Marco 

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Marco_88 
You can use 2 measures:
1. 

Complete rooms =
VAR RoomStatusCounts = SUMMARIZE('database', 'database'[ROOM NUMBER], "StatusCount", DISTINCTCOUNT('database'[STATUS]))
RETURN
COUNTROWS(FILTER(RoomStatusCounts, [StatusCount] = 1 && CONTAINSSTRING(CONCATENATEX(FILTER('database', 'database'[STATUS] = "DONE"), 'database'[ROOM NUMBER], ", "), 'database'[ROOM NUMBER])))
Ritaf1983_0-1699330969402.png

2. 

Not_completed rooms = DISTINCTCOUNT(DATABASE[ROOM NUMBER])-[Complete rooms]
Ritaf1983_1-1699331087715.png

PBIX is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @Marco_88 
You can use 2 measures:
1. 

Complete rooms =
VAR RoomStatusCounts = SUMMARIZE('database', 'database'[ROOM NUMBER], "StatusCount", DISTINCTCOUNT('database'[STATUS]))
RETURN
COUNTROWS(FILTER(RoomStatusCounts, [StatusCount] = 1 && CONTAINSSTRING(CONCATENATEX(FILTER('database', 'database'[STATUS] = "DONE"), 'database'[ROOM NUMBER], ", "), 'database'[ROOM NUMBER])))
Ritaf1983_0-1699330969402.png

2. 

Not_completed rooms = DISTINCTCOUNT(DATABASE[ROOM NUMBER])-[Complete rooms]
Ritaf1983_1-1699331087715.png

PBIX is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Thank you very much!
I still have a long way to go!

Best 

Marco 

@Marco_88 
You're welcome 🙂
And...it is going better with practice 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.