This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Hello,
I'm trying to vlookup one text column "Conca Partner-Loc" on another text column "Conca Loc-Partner" to retrieve corresponding value "Balance"
See below an example :
I want to calculate "Partner balance" column which is simple SUMIF formula in excel (range, Criteria, Sum Range) where Range is "Conca Loc-Partner", Criteria "Conca Partner-Loc" and Sum Range "Balance"
Thank you
Solved! Go to Solution.
@CrisCros23 with DAX measures can be achieved two ways (maybe more I am sure of that)
Measure1 =
CALCULATE (
SUM ( t1[Balance] ),
TREATAS ( VALUES ( t1[Conca Loc-Partner] ), t1[Conca Partner-Loc] ), ALL(t1)
)
Measure2 =
CALCULATE (
SUM ( t1[Balance] ),
FILTER ( ALL ( t1 ), t1[Conca Partner-Loc] = MAX ( t1[Conca Loc-Partner] ) )
)
with PQ you need to self join the table on t1[Conca Loc-Partner] to t1[Conca Partner-Loc]
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8ixJzKlU0lFyTy3KTcwDsQwNDJRidaKRRIILEjPzgLQRVAbGh+k1BonHAgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [C1 = _t, C2 = _t, Value = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"C1", type text}, {"C2", type text}, {"Value", Int64.Type}}),
#"Merged Queries" = Table.NestedJoin(#"Changed Type", {"C1"}, #"Changed Type", {"C2"}, "Changed Type", JoinKind.LeftOuter),
#"Expanded Changed Type" = Table.ExpandTableColumn(#"Merged Queries", "Changed Type", {"Value"}, {"Value.1"})
in
#"Expanded Changed Type"
pbix is attached
@CrisCros23 with DAX measures can be achieved two ways (maybe more I am sure of that)
Measure1 =
CALCULATE (
SUM ( t1[Balance] ),
TREATAS ( VALUES ( t1[Conca Loc-Partner] ), t1[Conca Partner-Loc] ), ALL(t1)
)
Measure2 =
CALCULATE (
SUM ( t1[Balance] ),
FILTER ( ALL ( t1 ), t1[Conca Partner-Loc] = MAX ( t1[Conca Loc-Partner] ) )
)
with PQ you need to self join the table on t1[Conca Loc-Partner] to t1[Conca Partner-Loc]
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8ixJzKlU0lFyTy3KTcwDsQwNDJRidaKRRIILEjPzgLQRVAbGh+k1BonHAgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [C1 = _t, C2 = _t, Value = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"C1", type text}, {"C2", type text}, {"Value", Int64.Type}}),
#"Merged Queries" = Table.NestedJoin(#"Changed Type", {"C1"}, #"Changed Type", {"C2"}, "Changed Type", JoinKind.LeftOuter),
#"Expanded Changed Type" = Table.ExpandTableColumn(#"Merged Queries", "Changed Type", {"Value"}, {"Value.1"})
in
#"Expanded Changed Type"
pbix is attached
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 5 | |
| 4 | |
| 3 |