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
table_a
ord_pri
money
nr_ped
----------------------------------------
table_b
ord_pri
money
nr_ped
relationship nr_ped
---------------------------------------
SUM valor of table_a
WHERE ord_pri of table_b
CONTAINS ord_pri of table_a
if (table_b.nr_ped CONTAINS table_a.nr_ped)
SUM(table_a.money)
Solved! Go to Solution.
@Anonymous
You can try a measure as below. See more detailis in the attached pbix file.
Measure =
SUMX (
FILTER (
TableA,
CONTAINS (
SELECTCOLUMNS ( TableB, "ord_pri", RIGHT ( TableB[ord_pri], 2 ) ),
[ord_pri], CONCATENATE ( TableA[ord_pri], "" )
)
),
TableA[valor]
)
Thank you so much!!!!
Ops total = 20
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.