Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have two tables. They are connected by date. And Date in table one is Unique.
I want to sum the values from table2 two in a column in table one.
Any tips?
Solved! Go to Solution.
Try this,
Sum of Value =
var _value = CALCULATE(SUM(Table2[Value]),FILTER(ALL(Table2),Table2[Date]=MIN(Table1[Date])))
return IF(ISBLANK(_value),0,_value)
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
same issue here, any solution? 🙂 thanks!
Try this,
Sum of Value =
var _value = CALCULATE(SUM(Table2[Value]),FILTER(ALL(Table2),Table2[Date]=MIN(Table1[Date])))
return IF(ISBLANK(_value),0,_value)
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
@RickardBengzon
Add the following column in Table 1
Total = CALCULATE ( SUM ( Table2[Value]) )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
I don't get any result from that If I remove "CALCULATE" and only use sum I get the total sum of all value for all dates
@RickardBengzon
Please try this:
Total =
SUMX(
FILTER( Table2 , Table2[Date] = Table1[Date] ),
Table2[Value]
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Seems legit but still doesn't work. I get no values at all... Thinking if there is somethings wrong with the date-connection... But they both seeem to be the same...
User | Count |
---|---|
117 | |
73 | |
58 | |
49 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |