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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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 Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.