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 want to calculate sum of quantity from Table A, if the records are aviable in Table B.
Please help on this
Solved! Go to Solution.
Hi, @Anonymous
I am unable to access the link. For further information, please show us a valid link. So I create data to reproduce your scenario.
TableA:
TableB:
There is a many-to-one relationship between two tables.
You may create a measure as follows.
SumQuantity =
var _result =
SUMX(
RELATEDTABLE(TableB),
TableB[Quantity]
)
return
IF(
_result= 0,
0,
_result
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
If you take the answer of someone, please mark it as the solution to help the other members who have same problems find it more quickly. If not, let me know and I'll try to help you further. Thanks.
Best Regards
Allan
Hi, @Anonymous
I am unable to access the link. For further information, please show us a valid link. So I create data to reproduce your scenario.
TableA:
TableB:
There is a many-to-one relationship between two tables.
You may create a measure as follows.
SumQuantity =
var _result =
SUMX(
RELATEDTABLE(TableB),
TableB[Quantity]
)
return
IF(
_result= 0,
0,
_result
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
to correct answer show data sample from both of your tables and point to summarized field
@Anonymous
you can create relationships between your table, add it to visual and filter out by TableB is not blank
see attach
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |