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
FRC
New Member

Slicer from measure with multiple selections

Goodafternoon,

 

I made a measure in power bi that show a certian problem if certian values are shown.

I called it check

Check = IF([A] > 1 , "A123","")&IF([B] > 0 , "B456,"")&IF([C] = 0 , "C789","")&IF([D]<[X], "X>D","")

 

Than i made a table that shows all possible combinations of this check

Status =

var x1=SUMMARIZE(Artikelgegevens,Artikelgegevens[Samenvoeging],"Check",[Check])
return

SUMMARIZE(x1,[Check])
 
This Check i put in a slicer.
 
Then i made a Check filter to put in the visual that if Check_filter is 1 the visual filters
Check_filter =

var x1=SELECTEDVALUE('Status'[Check])

return

IF(ISBLANK(x1),1,IF([Check]=x1,1,0))

 
 
 
 
This really works well if in the slicer i select one value, if i select multiple in the slicer this doenst work. i there any way to make this work? (select multiple values in the slicer, from a measure and have the the visual react on the selections). 
thank you
1 ACCEPTED SOLUTION

Hi @FRC 

IsBlank is for single values, use IsEmpty() for a column or table 🙂


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

3 REPLIES 3
FRC
New Member

Hi,

 

I have this:

Check_filter =

var x1=SELECTEDVALUE('Status'[Check])

return

IF(ISBLANK(x1),1,IF([Check]=x1,1,0))
 
and changing it to this 
 
var x1=Values('Status'[Check])
return

 

IF(ISBLANK(x1),1,IF([Check] IN x1,1,0))
this Gives the following error: calculation error in measure" artikelgegevens[Check_filter]: A table of Multiple values was supplied where a single value was expected.

Hi @FRC 

IsBlank is for single values, use IsEmpty() for a column or table 🙂


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

SamWiseOwl
Super User
Super User

Hi @FRC 

If you have multiple items use VALUES() and the IN operator.

var x1=Values('Status'[Check])
 

 

IF(ISBLANK(x1),1,IF([Check] IN x1,1,0))

If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

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.