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! Learn more
Hi all,
I'm currently attempting to work through a DAX formula that will group my highest value and the date that highest value was submitted.
My data set consists of Date Submitted, Bid, Room and Employee columns. The basic idea is that employees are bidding on certain rooms to rent out for the day, however, if two employees bid the same amount, I would need a way to distinguish a winner (and I am currently attempting to filter on date submitted, which has a time stamp, so that the employee who bid first would win the room).
I've attached a sample workbook to hopefully clarify the issue.
Any suggestions would be greatly appreciated!
Solved! Go to Solution.
Hiya.
Here's your column formula:
Winning Bidder =
var __currentRoom = RealTimeData[Room]
var __recordsWithCurrentRoom =
FILTER(
RealTimeData,
RealTimeData[Room] = __currentRoom
)
var __winnerRecord =
TOPN(
1,
__recordsWithCurrentRoom,
RealTimeData[bid],
DESC,
RealTimeData[DateSubmit],
ASC
)
var __winner =
MAXX(
__winnerRecord,
RealTimeData[employee]
)
return
__winnerBest
Darek
Hi.
Is this to be a measure or calculated column? Excel sucks when it comes to authoring DAX formulas - the formula bar is just a pain to use :((( It's much better to send .pbix files in the future, just so you know.
Best
Darek
Hey hey, @Anonymous this would be a calculated column 🙂
Hiya.
Here's your column formula:
Winning Bidder =
var __currentRoom = RealTimeData[Room]
var __recordsWithCurrentRoom =
FILTER(
RealTimeData,
RealTimeData[Room] = __currentRoom
)
var __winnerRecord =
TOPN(
1,
__recordsWithCurrentRoom,
RealTimeData[bid],
DESC,
RealTimeData[DateSubmit],
ASC
)
var __winner =
MAXX(
__winnerRecord,
RealTimeData[employee]
)
return
__winnerBest
Darek
Thanks so much @Anonymous ! Worked like a charm 🙂
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |