March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello!
I am having a terrible time trying to filter out "empty" values from a measure that I am using to sum one column from Table A and one column from Table B they share a unique identifier. When I put the information in a table visual, the values show up correctly with the proper counts from Table A and the proper costs from Table B. But the aggregation SHOWS the proper total costs per identifier, PLUS some other costs from Table B that do not have a value in Table A. I cannot filter this out! My Total cost shows $284,000, when it should be under $10k
Here are some screenshots and info:
Total Cost = SUM(Table A [Units Damaged] * SUM(Table B [Unit Cost]
Relationship is Table A Identifier = Table B Identifier
Any help is appreicated, Thanks guys and gals 😃
David
Solved! Go to Solution.
Hey @YYZENTHAL ,
try this measure:
Try this =
SUMX(
'table A'
, [Units Damaged] * RELATED('table B'[Unit Cost])
)
Hopefully, this provides what you are looking for.
Regards,
Tom
@Anonymous That did it thank you very much!
@mwegener Thank you for the response, no further action is required 😃
Hi @YYZENTHAL ,
can you provide a screenshot of your model view?
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hey @YYZENTHAL ,
try this measure:
Try this =
SUMX(
'table A'
, [Units Damaged] * RELATED('table B'[Unit Cost])
)
Hopefully, this provides what you are looking for.
Regards,
Tom
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
164 | |
116 | |
63 | |
57 | |
50 |