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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Finding difficulty in using the measure in Slicer - Help needed, Please

Hello PBI Community

 

Just a little background about the below table.

 

Error-1.jpg

 

Name data coming from the "Talent" table. Rest all the four fields are Measures. Finding difficulty in using the measure in Slicer.

 

I managed to get halfway through with my measure and for Slicer i created a new table called "Booking" which is giving me the output, but not satisfying one. What I mean, I'm getting "Booked" status marked employee along with "-". Ideally, I don't want to see "-" marked employees on the table.

 

Booking Measures =
IF(
HASONEVALUE(Talent[Name]),
IF(HASONEVALUE(Booking[Booking_Status]),
SWITCH( VALUES(Booking[Booking_Status]),
"Booked",[Booked],
"Partial",[Partial],
"Not Booked", [Not Booked]),
"-"
))

 

My objective is to filter the underlying table (which also contains this measure) based on what users are indicating in the slicer. So the use case is if I choose the Slicer "Booked", show only employee name marked as "Booked", similarly, when we click Partial, only "Partial" marked employee name should be shown.

 

My requirement ouput in visual display format.

 

1. Name by Booking Status

 

 Error-3.jpg

 

2. Count by Booking Status

 

Error-2.jpg 

Hope I'm clear with my requirement.


If anyone can help would be highly appreciated.

 

Many Thanks

1 ACCEPTED SOLUTION
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

If the BookingStatus is a measure, We can use a measure in Visual Filter(set as greater than zero) after create a table as Slicer to meet your requirement:

 

1. create a table as the slicer:

 

20.jpg

 

2. use the measure in visual filter of table visual:

 

Status Control =
IF ( [Booking Status] IN FILTERS ( 'StatusSlicer'[Value] ), 1, -1 )

 

If you want to count by the booking status, we can use the  'StatusSlicer'[Value]  and following measure in slicer to meet your requirement:

 

Count by Booking Status =
COUNTROWS (
    FILTER (
        SUMMARIZE ( 'Talent', 'Talent'[Name], "Status", [Booking Status] ),
        [Status] IN FILTERS ( 'StatusSlicer'[Value] )
    )
)


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?


Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

If the BookingStatus is a measure, We can use a measure in Visual Filter(set as greater than zero) after create a table as Slicer to meet your requirement:

 

1. create a table as the slicer:

 

20.jpg

 

2. use the measure in visual filter of table visual:

 

Status Control =
IF ( [Booking Status] IN FILTERS ( 'StatusSlicer'[Value] ), 1, -1 )

 

If you want to count by the booking status, we can use the  'StatusSlicer'[Value]  and following measure in slicer to meet your requirement:

 

Count by Booking Status =
COUNTROWS (
    FILTER (
        SUMMARIZE ( 'Talent', 'Talent'[Name], "Status", [Booking Status] ),
        [Status] IN FILTERS ( 'StatusSlicer'[Value] )
    )
)


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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