The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance 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.
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
8 | |
8 |