Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm using the DUAL function to list % Ranges in a table:
=If((((if(([Bid.Rank]>1), [Bid_Amount]))-(if(([Bid.Rank]>1), [Low_Comp_Bid1])))/ (if(([Bid.Rank]>1), [Bid_Amount]))) < 0.01, Dual('0 to 1 %', 1),
If((((if(([Bid.Rank]>1), [Bid_Amount]))-(if(([Bid.Rank]>1), [Low_Comp_Bid1])))/ (if(([Bid.Rank]>1), [Bid_Amount]))) >= 0.01 and (((if(([Bid.Rank]>1), [Bid_Amount]))-(if(([Bid.Rank]>1), [Low_Comp_Bid1])))/ (if(([Bid.Rank]>1), [Bid_Amount]))) < 0.02, Dual('1 to 2 %', 2),
If((((if(([Bid.Rank]>1), [Bid_Amount]))-(if(([Bid.Rank]>1), [Low_Comp_Bid1])))/ (if(([Bid.Rank]>1), [Bid_Amount]))) >= 0.02 and (((if(([Bid.Rank]>1), [Bid_Amount]))-(if(([Bid.Rank]>1), [Low_Comp_Bid1])))/ (if(([Bid.Rank]>1), [Bid_Amount]))) < 0.03, Dual('2 to 3 %', 3),
If((((if(([Bid.Rank]>1), [Bid_Amount]))-(if(([Bid.Rank]>1), [Low_Comp_Bid1])))/ (if(([Bid.Rank]>1), [Bid_Amount]))) >= 0.03 and (((if(([Bid.Rank]>1), [Bid_Amount]))-(if(([Bid.Rank]>1), [Low_Comp_Bid1])))/ (if(([Bid.Rank]>1), [Bid_Amount]))) < 0.04, Dual('3 to 4 %', 4),))))
My problem is that I have duplicate values in one of the other columns (bid_amount) so when I select one of these % ranges, it will show all the ranges that has that duplicate value. I only want it to display the row of the % range selected.
So say there are 2 records that have a bid_amount of 10. But one falls in the 0-1% range and one falls in the 1-2% range. When I select 0-1% i still see the 1-2% range in the table. Hope this makes sense.
Thanks!
Hi! What is it that you want to accomplish with the expression?
I want the expression to select unique [contract_id] 's for the range that is selected. Right now it is selecting other variables that may have duplicates.
May be you can create unique key field
LOAD
*,
[Bid.Rank] & '-' & [Bid_Amount] & '-' & [Bidder] AS Bid_Key
RESIDENT Table;
What is the percentage you are calculating?
The percentage by which a bid was lost by.
(Bid_Amount - Winning_Competitor_Bid) / (Bid_Amount) for all bids that were lost ie rank >1.
Maybe something like: