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
Anonymous
Not applicable

dax error, return no value

I want to make a silmilar selection, 
dimtable is 

TA
JPT

 

 

dan facttable column is like this

TA_a
Jpt

there is no common column to build a relationship, I want to make a slicer use dimtable to filter factable

here is the DAX:

ChannelFilter =
VAR dim =
VALUES('dim'[dim] )
VAR facttbl =
VALUES('facttable'[describe])
RETURN
IF ( SEARCH ( dim, facttbl,, 0 ) > 0, facttbl, 0 )
no matter how I tried, it returns only 0, how to make this DAX correct?
I want to use dimtable slicer  to filter factable all the columns, do you have any good ideas?
1 ACCEPTED SOLUTION
sturlaws
Resident Rockstar
Resident Rockstar

Hi,

write your measure like this:

sturlaws_1-1654166200020.png

and add it to the filterpane of the visual, and set it to greater than 0:

 

sturlaws_0-1654166124964.png

 

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

 

View solution in original post

2 REPLIES 2
sturlaws
Resident Rockstar
Resident Rockstar

Hi,

write your measure like this:

sturlaws_1-1654166200020.png

and add it to the filterpane of the visual, and set it to greater than 0:

 

sturlaws_0-1654166124964.png

 

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

 

Anonymous
Not applicable

very good😺

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!

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.