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
gauravnarchal
Post Prodigy
Post Prodigy

Lookupvalue

Hello

 

I need your help on the below

 

For each IDNumber, return the transaction type 1 or 3 only

 

Data

IDNumberTransactionType
9120211
9120213
9125333
9125331
8988011
8988013
8997853
8997851
9001401
9001403
9015093
9015091
9001401
9001403
9001404
9178211
9178213
9178215

 

Result

 

IDNumberTransactionTypeResult
91202111
91202111
89880111
89880111
90014013
90014033
90150933
90150913
90014013
90014033
90014043
91782113
91782133
91782153
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @gauravnarchal ,

 

Refer the formula.

Column = CALCULATE(MAX(data[TransactionType]),FILTER(ALLEXCEPT(data,data[IDNumber]),data[TransactionType]=1||data[TransactionType]=3))

 1.PNG

 

Best Regards,

Jay

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @gauravnarchal ,

 

Refer the formula.

Column = CALCULATE(MAX(data[TransactionType]),FILTER(ALLEXCEPT(data,data[IDNumber]),data[TransactionType]=1||data[TransactionType]=3))

 1.PNG

 

Best Regards,

Jay

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @gauravnarchal ,

 

I do not understand the requirement.
Why is the IDNumber 912533 not displayed in the result?
Why is the IDNumber 912021, 898801, ... only the 1 is displayed?
Why is the IDNumber 900140 displayed only the 3?

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


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