Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello
I need your help on the below
For each IDNumber, return the transaction type 1 or 3 only
Data
| IDNumber | TransactionType |
| 912021 | 1 |
| 912021 | 3 |
| 912533 | 3 |
| 912533 | 1 |
| 898801 | 1 |
| 898801 | 3 |
| 899785 | 3 |
| 899785 | 1 |
| 900140 | 1 |
| 900140 | 3 |
| 901509 | 3 |
| 901509 | 1 |
| 900140 | 1 |
| 900140 | 3 |
| 900140 | 4 |
| 917821 | 1 |
| 917821 | 3 |
| 917821 | 5 |
Result
| IDNumber | TransactionType | Result |
| 912021 | 1 | 1 |
| 912021 | 1 | 1 |
| 898801 | 1 | 1 |
| 898801 | 1 | 1 |
| 900140 | 1 | 3 |
| 900140 | 3 | 3 |
| 901509 | 3 | 3 |
| 901509 | 1 | 3 |
| 900140 | 1 | 3 |
| 900140 | 3 | 3 |
| 900140 | 4 | 3 |
| 917821 | 1 | 3 |
| 917821 | 3 | 3 |
| 917821 | 5 | 3 |
Solved! Go to Solution.
Hi @gauravnarchal ,
Refer the formula.
Column = CALCULATE(MAX(data[TransactionType]),FILTER(ALLEXCEPT(data,data[IDNumber]),data[TransactionType]=1||data[TransactionType]=3))
Best Regards,
Jay
Hi @gauravnarchal ,
Refer the formula.
Column = CALCULATE(MAX(data[TransactionType]),FILTER(ALLEXCEPT(data,data[IDNumber]),data[TransactionType]=1||data[TransactionType]=3))
Best Regards,
Jay
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?
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 69 | |
| 50 | |
| 46 |