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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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