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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello!
It seems like a simple task but I can't figure it out, has anyone encountered this problem?
I am attaching a clear example. How can I calculate the two columns?
Solved! Go to Solution.
Hello @borniex,
Assuming, the tables are not related in your data model, I could propose to create a couple of calculated columns like this one:
In plain text:
sum_parent =
VAR CurrentParent = [parent]
RETURN SUMX ( FILTER ( Data, [product] = CurrentParent ), [value] )
sum_child =
VAR CurrentChild = [child]
RETURN SUMX ( FILTER ( Data, [product] = CurrentChild ), [value] )
Best Regards,
Alexander
Hello @borniex,
Assuming, the tables are not related in your data model, I could propose to create a couple of calculated columns like this one:
In plain text:
sum_parent =
VAR CurrentParent = [parent]
RETURN SUMX ( FILTER ( Data, [product] = CurrentParent ), [value] )
sum_child =
VAR CurrentChild = [child]
RETURN SUMX ( FILTER ( Data, [product] = CurrentChild ), [value] )
Best Regards,
Alexander
Thank you, the solution works! How and what should be transformed so that I can make it dynamic with a measure?
In case you use a table visual for that, such measures will do:
sum_parent =
VAR CurrentParent = MIN ( Relationship[parent] )
RETURN SUMX ( FILTER ( Data, [product] = CurrentParent ), [value] )
sum_child =
VAR CurrentChild = MAX ( Relationship[child] )
RETURN SUMX ( FILTER ( Data, [product] = CurrentChild ), [value] )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 22 | |
| 20 | |
| 20 | |
| 14 | |
| 14 |