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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All,
I know this is documented quite a few times throughout the forums and I assure you I have read through every one before making another post. The problem is that my use case involves calculating the total in a column of a table which potentially has two different tables in play (depending on the value of the row).
Heres the logic for how it decides which column from one of the tables to use.
Solved! Go to Solution.
Try this :
Expected_Hours_Total2 =
VAR SumTable1 = SUMX('Table1', [Expected_Hours])
VAR SumTable2 = SUMX('Table2', [Expected_Hours])
RETURN
IF(
ISBLANK(SumTable1),
SumTable2,
SumTable1 + SumTable2
)
If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try this :
Expected_Hours_Total2 =
VAR SumTable1 = SUMX('Table1', [Expected_Hours])
VAR SumTable2 = SUMX('Table2', [Expected_Hours])
RETURN
IF(
ISBLANK(SumTable1),
SumTable2,
SumTable1 + SumTable2
)
If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
15 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |