Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

How to create a new column based on criteria in other columns?

I have been acquainting myself with Power BI for about a day now, so you can say I'm a complete novice.

 

Below are several different companies' price proposals.  I want to create a new column to indicate only the "bid amount" if that company was low bidder on the project.  The idea is that I could then perform analytics on the revenue of each company.  How would I go about doing this?

Question on forum.PNG

For example, in the first two rows, I would want a new column that indicates $6078976.36 for "Bidder X" (I drew in the letters) since they were low, and $0 for "Bidder Y," since they lost.  Please note that there are several different "Proposals" in this table, I only screenshotted this particular proposal "135" but I'd want to do this for every proposal in my data set.

 

Essentially, I want to create a new column whose value is based on the minimum bid placed on a given proposal.  All other bidders would have a value of 0 for that proposal.

 

Thank you!

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

Please download the demo from the attachment. 

Solution 1 based on Power Query.

let currentProposal = [Proposal], currentBid = [Bid Amount] 
in
if List.Min(Table.SelectRows(#"Changed Type", each [Proposal] = currentProposal)[Bid Amount]) = currentBid
then currentBid
else 0

Solution 2 based on DAX.

Column =
IF (
    Table1[Bid Amount]
        = CALCULATE ( MIN ( Table1[Bid Amount] ), ALLEXCEPT ( Table1, Table1[Proposal] ) ),
    Table1[Bid Amount],
    0
)

How-to-create-a-new-column-based-on-criteria-in-other-columns

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

Please download the demo from the attachment. 

Solution 1 based on Power Query.

let currentProposal = [Proposal], currentBid = [Bid Amount] 
in
if List.Min(Table.SelectRows(#"Changed Type", each [Proposal] = currentProposal)[Bid Amount]) = currentBid
then currentBid
else 0

Solution 2 based on DAX.

Column =
IF (
    Table1[Bid Amount]
        = CALCULATE ( MIN ( Table1[Bid Amount] ), ALLEXCEPT ( Table1, Table1[Proposal] ) ),
    Table1[Bid Amount],
    0
)

How-to-create-a-new-column-based-on-criteria-in-other-columns

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.