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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have a "Payments" table, which lists the payments received by a student for a specific course, each student may have several payments for a course. In another table "courses", I have the course price.
I've created a measure which summarizes the amount paid per student:
SumPaid = SUMX(VALUES(FACT_Payments[StudentId]),CALCULATE(SUM(FACT_Payments[Amount_paid])))
I need to create a measure which calculates the remaining amount to be paid. "SumPaid" - "CoursePrice" and I need this to be per student.
Thanks a lot!
Solved! Go to Solution.
Hi @kzagorsky,
Refer to this pbix for your answer. Let me know if you face any issues.
Prateek Raina
Hi @kzagorsky,
Refer to this pbix for your answer. Let me know if you face any issues.
Prateek Raina
This was very helpful. Thank you very much!!!
Hi @kzagorsky,
Glad to know that it solved your problem. Kindly hit the thumbs up button for my answer.
Prateek Raina
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.