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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Analitika
Post Prodigy
Post Prodigy

Cant match string

I have measure nor one of that is not work

Measure = if("PARD" IN DISTINCT ('Table'[rus_kod]) ,1,0)

Measure = if("PARD" = max('Table'[rus_kod]) ,1,0)
 
wtf?wtf?
 
rus_kod have no difference in codes "PARD" code in unique
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Analitika ,

Thanks for sharing your pbix file. As checked the data which the value of field rus_kod is "PARD", there is only one record which did_dat is on Mar 3, 2015. And as put the following measure on the table visual, it works well. I'm not sure if something missing here and cause that can't reproduce your problem...

can't match string.JPG

Best Regards

Rena

View solution in original post

13 REPLIES 13
harshnathani
Community Champion
Community Champion

Hi @Analitika ,

 

For Measure

 Measure = if(MAX('Table'[rus_kod] )= "PARD" ,1,0)

 

 

For Column

CColumn = if('Table'[rus_kod] )= "PARD" ,1,0)

 


Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

Did I answer your question? Mark my post as a solution!

 

 

As i mentioned 

For Measure

 Measure = if(MAX('Table'[rus_kod] )= "PARD" ,1,0)

 

is not work and return me for half 0 for other 1 😡

Hi @Analitika ,

 

Measure = if(TRIM(MAX('Table'[rus_kod] ))= "PARD" ,1,0)

 

Regards,

Harsh Nathani

HI @Analitika ,

 

if (CONTAINS('Table', Table'[rus_kod], "PARD"),1,0)
 
Regards,
HN

result the same, it like a bug also visual do not showing value from rows 🙄

 

if i recreate file measure working, but after couple of time stop works again 😵

Hi @Analitika ,

 

Share the sample where it is returning 0.

 

Also share your .pbix if possible.

 

Regards,

Harsh Nathani

foun what this is happens if date selected, but dont understand why it showing values in table if not meet date?
Why values is showing if not meet date?Why values is showing if not meet date?2020-07-16_085351.png

Anonymous
Not applicable

Hi @Analitika ,

Whether the date field used in slicer is from the same table with the field did_dat? If no, is there any relationship be created between two tables? In addition, could you please provide some sample data (exclude sensitive data) in order to make troubleshooting? It is better if you can provide your sample pbix file. Thank you.

Best Regards

Rena

Anonymous
Not applicable

Hi @Analitika ,

Thanks for sharing your pbix file. As checked the data which the value of field rus_kod is "PARD", there is only one record which did_dat is on Mar 3, 2015. And as put the following measure on the table visual, it works well. I'm not sure if something missing here and cause that can't reproduce your problem...

can't match string.JPG

Best Regards

Rena

result the same

harshnathani
Community Champion
Community Champion

Hi @Analitika ,

 

 

What is the expected output ?

 


Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

Did I answer your question? Mark my post as a solution!

All must be 1 as "PARD" always must be = "PARD"

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors