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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! 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
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors