Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I need help to get the MAX from a column if two other columns data is a match.
See example and screenshots below;
If [ShipmentNo] in my Logistics table is = to [strCntDocID] in my ContainerDT table, then I want to show the MAX number from the [IntSeqNo] which is also in my ContainerDT table.
Hopefully someone can assist me.
Thanks,
Greg
Solved! Go to Solution.
@Gregory-N
Add a Calculated Column in your Logistics table as follows:
SeqNoMax =
MAXX (
FILTER ( ContainerDTtable, ContainerDTtable = LogisticTable[ShipmentNo] ),
ContainerDTtable[IntSeqNo]
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Good morning @Fowmy
Thanks for the response.
Unfortunately this doesn't work, it brings up an #ERROR.
The error message is "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value"
I added the column as per your above measure:
SeqNoMax
@Gregory-N
Hope you added this as a calculated column in your logistic table?
Please share a screenshot of the error
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Gregory-N
Add a Calculated Column in your Logistics table as follows:
SeqNoMax =
MAXX (
FILTER ( ContainerDTtable, ContainerDTtable = LogisticTable[ShipmentNo] ),
ContainerDTtable[IntSeqNo]
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
147 | |
85 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |