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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
epang0714
Frequent Visitor

traffic light summary

Hi 

 

I have created a simple table which shows the progress of activities using conditional formatting. I would like to create a traffic light summary at the top to show number of activities which are Not started, In progress and Complete. The icons are Red, Yellow and Green. I am just stuck in creating the summary count. Currently if I click on the icon, Power BI will filter the records to the relevant status. Does any one know how can I do the summary count? the outcome I want is  eg if the user click on a particular slicer, in this case the department, then it will show how many activities are in red, yellow and green. Thanks.  

epang0714_0-1727224334973.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @epang0714 
If I understood you correctly, then a simple distinct count will do the job.
You can even show the qty of every status's activities on the slicer itself:

 

Ritaf1983_0-1727229408845.png

Ritaf1983_1-1727229438888.png

The pbix with the example 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 @epang0714 
If I understood you correctly, then a simple distinct count will do the job.
You can even show the qty of every status's activities on the slicer itself:

 

Ritaf1983_0-1727229408845.png

Ritaf1983_1-1727229438888.png

The pbix with the example 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

Thanks, is it possible to count the count for each of the status?

Hi @epang0714 
Yes of course, but you don't need it if you are using slicers / filters/visuals with filter context .
Count of specific for specific status dax formula is :

In_progress_qty = CALCULATE(DISTINCTCOUNT('Table'[Category]), 'Table'[status]= "In progress")
Ritaf1983_0-1727231337340.png

 

the same formula for every status:
the updated 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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.