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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
vandam2
Frequent Visitor

Filter Visual question

Good morning Gang, i have a question about modifying the look of a filter

i have a filter for Shift time, but i would like to add the count of events to the filter view with the filter category 

 

Would like the shift filter to have the count with the text rather than having to add a seperate text visual with measure and try to match it up 

 

would love to have something like Day (26k) / Evening (3075) / Night (2473) 

 

thanks in advance 

 

countbyshift.png

 

 

1 ACCEPTED SOLUTION
jgeddes
Super User
Super User

One possible strategy would be to create a calculated column in your Details table that calculates the distinct count per shift and then concatenates that with the shift type. Then you would use your calculated column as the slicer.
A basic example would look like...

jgeddes_0-1694448066650.png

jgeddes_1-1694448115598.png

Hope this gets you going in the right direction.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

4 REPLIES 4
jgeddes
Super User
Super User

One possible strategy would be to create a calculated column in your Details table that calculates the distinct count per shift and then concatenates that with the shift type. Then you would use your calculated column as the slicer.
A basic example would look like...

jgeddes_0-1694448066650.png

jgeddes_1-1694448115598.png

Hope this gets you going in the right direction.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





hello again and sorry for the bother,,, do you know if i can adjust the calculated column script so that when i use another filter, that it woudl update the counts?

example my top filter is from a field called user, if i select a specific user from the same details datasource, the counts to not update specific to that user..  

 

is there a way to add that logic to the script?

 

adjust.png

I am not sure that this would be possible as a calculated column works within the context of the table that it is created in. It would not 'know' that a slicer has been applied. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





works amazing, thank you so much 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.