The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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!