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! Request now
I have two tables as bellow:
Deal History:
Deal:
Two tables have relationship by Deal History[Deal ID] = Deal[ID]
And i want to create a column to know which deal have history = PT Pending.
I try with formula:
Check PT =
Solved! Go to Solution.
Hi @neonguyen , try with this code:
Check PT = IF(CALCULATE(COUNTROWS('Deal History');FILTER('Deal History';'Deal History'[Deal ID]=Deal[ID] && 'Deal History'[Stage_change]="PT Pending"))<>0;1;0)Remenber to change ";" per "," and disabled the count option.
Best Regards,
Miguel
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous @ZunzunUOC both get same result.
And with my formula, if i change to :
Try this instead,
Hi @neonguyen , try with this code:
Check PT = IF(CALCULATE(COUNTROWS('Deal History');FILTER('Deal History';'Deal History'[Deal ID]=Deal[ID] && 'Deal History'[Stage_change]="PT Pending"))<>0;1;0)Remenber to change ";" per "," and disabled the count option.
Best Regards,
Miguel
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 48 | |
| 42 |