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
Hi all,
I am trying to create a lovely formula in a Column which sets the value of that column to Y Won or Y lost based on an if Function.
| Tender | Competitor | Bid Won/Lost | Wanted Result |
| Tender 1 | X | Lost | Y won |
| Tender 1 | Y | Won | Y won |
| Tender 1 | Z | Lost | Y won |
| Tender 2 | X | Won | Y lost |
| Tender 2 | Y | Lost | Y lost |
| Tender 2 | Z | Lost | Y lost |
Solved! Go to Solution.
If there can only ever be 1 winner for a tender then you could use
Who Won =
var currentTender = 'Table'[Tender]
return LOOKUPVALUE( 'Table'[Competitor], 'Table'[Tender], currentTender,
'Table'[Bid won/lost], "Won") & " won"
If there can only ever be 1 winner for a tender then you could use
Who Won =
var currentTender = 'Table'[Tender]
return LOOKUPVALUE( 'Table'[Competitor], 'Table'[Tender], currentTender,
'Table'[Bid won/lost], "Won") & " won"
Thanks a million... I created a new column with this formula and adjusted the above formula and referenced to the new column. Great!
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 |
|---|---|
| 97 | |
| 71 | |
| 50 | |
| 47 | |
| 44 |