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! Request now

Reply
newpower
Frequent Visitor

find a number in a other column and row

Hello,

 

i have a problem and hope anybody could help me.

 

This is my data source:

 

[MA Nr.]   [AbNR]

8904        153

8616        2368

8294        2368

2368        153

397          2368

 

Now i need a Messure to find out, if the [AbNR] is somewhere include in the [MA NR.].

 

Please help. bettina

1 ACCEPTED SOLUTION

@newpower

 

Try this MEASURE

 

Measure =
CONTAINS (
    CALCULATETABLE ( VALUES ( Table1[MA Nr.] ), ALLSELECTED ( Table1 ) ),
    Table1[MA Nr.], SELECTEDVALUE ( Table1[AbNR] )
)

View solution in original post

4 REPLIES 4
ofirk
Resolver II
Resolver II

Hi @newpower,

Try:

is_in_AbNr = IF(NOT ISBLANK(LOOKUPVALUE([AbNR], [AbNR], [MA Nr.])), TRUE(), FALSE())

These are my results for your data:

res.PNG

Thanks for your answer. The problem is - this only works as a new column, but i need it as Measure, because if i filted the [AbNR ]and there is no match in the filted list, i want to overwrite the value. If i have the value in a column, i always have a match... for example:

 

MA Nr.  AbNR                                          if i filted on 2368 (AbNR) the solution should be:

397        2368 -> True                             MA NR.   AbNR
2368      153   -> False                            397          2368 -> False
8294      2368 -> True                             8294        2368 -> False
8616      2368 -> True                             8616        2368 -> False
8904      153   -> False

 

@newpower

 

Try this MEASURE

 

Measure =
CONTAINS (
    CALCULATETABLE ( VALUES ( Table1[MA Nr.] ), ALLSELECTED ( Table1 ) ),
    Table1[MA Nr.], SELECTEDVALUE ( Table1[AbNR] )
)

Thank you - yes that was the right way 🙂

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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
Top Kudoed Authors