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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

How to use DAX Filter using IN with String Parameter ?

Hi All,

I want to add a custom column to a table B with certain calculation to get the maximum value on a product from another table A, however each event_venue_id in the table B might have different products mapping.

 

This is the source table A for calculation (i created a column called productid_string with datatype Text) :

pbi3.PNG

 

I've prepared the list of products mapping for each event_venue_id, by adding column productidlist in table B like this :

pbi4.PNG

 

the result in table B (column productidlist)

pbi2.PNG

 

Then I create the custom column in table B (ITR M-3) to get maximum value of product like this.

When I fetched the values into a variable and use it within filter it wont' work using double quotes, then i tried to test manually using unichar(34) and it works.

 

pbi.PNG

 

Can someone help me how to fix the parameter or how to filter using multiple values of product id?

 

Thank You

 

2 REPLIES 2
Anonymous
Not applicable

Hello @alvinyurisman ,

Do you want to get the maximum product number from each hospital at the same time? For example: hospitalid 88790, the expected value of ITR M-3 is 96? Has any relationship been created between table A and table B? If yes, what field is the connected field?

max product.JPG

Best regards

Rena

Greg_Deckler
Community Champion
Community Champion

One, having a bit of trouble following this one. Sample data as text would help recreate. Expected output from that source data would also help. You have a lot of it in the post but there are some missing elements. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

For example, I don't understand where those funky quotes are coming from. Can you strip those out in Power Query? It's very odd to have those in the data.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.