Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello folks,
My requirement is as below:
i have a field with codes 1 to 10. I want to create a column where if all codes are there then column should give answer as WITH and if values (7 or 8 or 9) are not there (means if codes has value 1,2,3,4,5,6,10) then column should give value as WITHOUT.
How to accomplish this ? is there any option to exclude values in If else?
Regards
Priyanka
Solved! Go to Solution.
Hi @INJAINP,
You can refer to following formula to compare text value with list of records:
Result =
VAR list =
GENERATESERIES ( 1, 10, 1 )
RETURN
IF (
COUNTROWS ( FILTER ( list, FIND ( [Value], [Code], 1, -1 ) > 0 ) )
= COUNTROWS ( List ),
"With",
"Without"
)
Regards,
Xiaoxin Sheng
Hi @INJAINP,
You can refer to following formula to compare text value with list of records:
Result =
VAR list =
GENERATESERIES ( 1, 10, 1 )
RETURN
IF (
COUNTROWS ( FILTER ( list, FIND ( [Value], [Code], 1, -1 ) > 0 ) )
= COUNTROWS ( List ),
"With",
"Without"
)
Regards,
Xiaoxin Sheng
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.