Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
YYZENTHAL
Helper I
Helper I

Having trouble filtering an aggregate measure.

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 

YYZENTHAL_0-1595270985011.png

YYZENTHAL_1-1595271045928.png

 

Any help is appreicated, Thanks guys and gals 😃

 

David

 

 

 

  

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

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



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

3 REPLIES 3
YYZENTHAL
Helper I
Helper I

@Anonymous That did it thank you very much!

@mwegener Thank you for the response, no further action is required 😃

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @YYZENTHAL ,

 

can you provide a screenshot of your model view?

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

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


TomMartens
Super User
Super User

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



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.