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! Request now
*If I am not supposed to post a question here, please let me know. Thanks!*
Thanks for reading and for helping if you can. I have not been able to come up with a solution for this. I am just learning DAX and appreciate any guidance.
Table A has a one>many cardinality with Table B.
Some Table A records do not have related records in Table B.
When a Table A record DOES NOT have a foreign key in Table B, I want to use a value from a Table A column.
When a Table A record DOES have a foreign key in Table B, I want to sum the values in a Table B column.
Table A (Tasks) Table B - Assignments Table A Calculated Value in Power Pivot
Key: 1 Foreign Key: 1 Sum of Table B[Assign_hours] = 4.5
Plan_Hours = 5 Assign_Hours = 2
Foreign Key: 1
Assign_Hours = 1.5
Key: 2 (no record) Table A Plan_Hours = 3
Plan_Hours = 3
Thank you!
Solved! Go to Solution.
Yes most of the table functions are available in power pivot. You can use any function in your measures and calculated tables but the final result of your calculation must be a scalar value. if a table is returned you will receive an error.
Hi @careyd
power pivot does not have a calculated table feature. Do you mean power query, power bi or pivot table?
Thanks for the reply @tamerj1! That may be the root of the problem, then. Though I do see a CALCULATETABLE function when working with DAX in Power Pivot.
Yes most of the table functions are available in power pivot. You can use any function in your measures and calculated tables but the final result of your calculation must be a scalar value. if a table is returned you will receive an error.
Okay. I appreciate your insight. I'll investigate a different approach. Thank you!
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.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |