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.
Hello, i have following data; how can I write a formula to show the max bid per event based on total cost that is not the engineering estimate. I do know to get the formula for the sum is the following but do not know how to get max :
Solved! Go to Solution.
Max Non Engineering Estimate =
MAXX (
SUMMARIZE (
'Table',
'Table'[Bid event id],
'Table'[Bidder],
'Table'[Description]
),
[Highest Non Engineering Estimate]
)
You need to put in the SUMMARIZE enough columns to uniquely identify a row. If there is a unique ID in your dataset then you could just use that column.
Its possible that the the SUMMARIZE still isn't at the correct granularity. You can check what is being returned by creating a new table using
Tmp table =
ADDCOLUMNS (
SUMMARIZE (
'Bid Template Data',
'Bid Template Data'[Bid Event],
'Bid Template Data'[Bidder],
'Bid Template Data'[Description.1]
),
"Highest estimate", [Highest Non Engineering Estimate]
)
and see what that shows in the data view. You may need to add more columns into the SUMMARIZE
Hi @JMcAnarney1
please try
Maximum None Engineering Bid =
SUMX (
SUMMARIZE (
FILTER ( 'Table', 'Table'[Bidder] <> "Engineering Estimate" ),
'Table'[Bid event id],
'Table'[Description],
"MaxBid", MAX ( 'Bid Template Data'[Total Cost] )
),
[MaxBid]
)
You can use
Max Non Engineering Estimate =
MAXX ( VALUES ( 'Table'[Bid event id] ), [Highest Non Engineering Estimate] )
Issue is that does not divide out the multiple non - engeering estimate bidders and it sums them together. For example, there were two other bidders and it is lumping them together based off your formula when in reality just want one that is highest
Max Non Engineering Estimate =
MAXX (
SUMMARIZE (
'Table',
'Table'[Bid event id],
'Table'[Bidder],
'Table'[Description]
),
[Highest Non Engineering Estimate]
)
You need to put in the SUMMARIZE enough columns to uniquely identify a row. If there is a unique ID in your dataset then you could just use that column.
So here is what I have feeding into eachother:
I think probelm is that my Highest non-engineering formula still needs to breakout it further
I should add I know how to get the highest bidder by name but not by amount with the following formula:
Its possible that the the SUMMARIZE still isn't at the correct granularity. You can check what is being returned by creating a new table using
Tmp table =
ADDCOLUMNS (
SUMMARIZE (
'Bid Template Data',
'Bid Template Data'[Bid Event],
'Bid Template Data'[Bidder],
'Bid Template Data'[Description.1]
),
"Highest estimate", [Highest Non Engineering Estimate]
)
and see what that shows in the data view. You may need to add more columns into the SUMMARIZE
User | Count |
---|---|
17 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |