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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
SamWiseOwl
Community Champion
Community Champion

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.
SamWiseOwl
Community Champion
Community Champion

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
Community Champion
Community Champion

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.