Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi,
My data is as follows.
I have two Measures:
Lowest Proposal = min(Proposal[Vendor Bid])
&
Proposal Rank = if(ISBLANK([Lowest Proposal])
, blank ()
, rankx(
filter(ALL(Proposal[Vendor ID]), not (ISBLANK([Lowest Proposal])))
, [Lowest Proposal]
,
,1
)
)
Solved! Go to Solution.
hi, @amtbew
try below measure
rank =
var a = SUMMARIZE(
'Table',
'Table'[product id],
'Table'[lowest proposal],
'Table'[vender id],
"rank",RANK(
DENSE,
ALL('Table'),
ORDERBY('Table'[lowest proposal],ASC),,
PARTITIONBY('Table'[product id])
)
)
return
COUNTX( FILTER(a, [rank]=1),'Table'[vender id])
hi, @amtbew
try below
Measure 3 =
var a = ADDCOLUMNS( SUMMARIZE(Proposal,Proposal[Product ID],Proposal[Vendor ID]),"low",[Lowest Proposal],"rank",[Proposal Rank])
return
COUNTX(FILTER(a,[Proposal Rank]=1),Proposal[Vendor ID])
or this try
Both ones you posted seemed to work. Thanks
hi, @amtbew
try below measure
rank =
var a = SUMMARIZE(
'Table',
'Table'[product id],
'Table'[lowest proposal],
'Table'[vender id],
"rank",RANK(
DENSE,
ALL('Table'),
ORDERBY('Table'[lowest proposal],ASC),,
PARTITIONBY('Table'[product id])
)
)
return
COUNTX( FILTER(a, [rank]=1),'Table'[vender id])
Thanks @Dangar332 howver it's returning the following error
The column 'lowest proposal' specified in the 'SUMMARIZE' function was not found in the input table.
Perhaps because that is a measure not a column?
Here's a pbix
Thanks
hi, @amtbew
try below
Measure 3 =
var a = ADDCOLUMNS( SUMMARIZE(Proposal,Proposal[Product ID],Proposal[Vendor ID]),"low",[Lowest Proposal],"rank",[Proposal Rank])
return
COUNTX(FILTER(a,[Proposal Rank]=1),Proposal[Vendor ID])
This one worked. Thank you
| User | Count |
|---|---|
| 49 | |
| 37 | |
| 33 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 131 | |
| 99 | |
| 56 | |
| 37 | |
| 37 |