Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
24 | |
10 | |
10 | |
9 | |
6 |