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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Calculate Sum Column help

Hi all,

 

I'm trying to use a centralised table to get a sum of attributes from different sources, but I'm having issues. (PBI file below).  

https://www.dropbox.com/s/b8antobqv56usf8/PBI%20Column%20Fix.pbix?dl=0 

 

My DAX doesn't seem to filter out the count of "2001" by "Engine Capacity", instead it finds any instance of "2001" in that table and sums that instead? (Code in spoiler)

 

image.pngimage.png

Any help is appreciated!

 

Spoiler
Source Count =
CALCULATE(SUM('Data Source Info'[Data Source Count]),
FILTER('Data Source Info',
'Data Source Info'[Standardised Attribute Name]='Standardised Attribute Name Lookup w Value'[Standardised Attribute Name] &&
'Data Source Info'[Stand Value 1]='Standardised Attribute Name Lookup w Value'[Stand Value 1]&&
'Data Source Info'[Stand Value 2]='Standardised Attribute Name Lookup w Value'[Stand Value 2]))

Kind regards,

 

Jordan  

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi all,

 

issue solved. The centralised table had duplicate values in it, e.g:

 

engine CC, 2001 -> 2001

engine CC, 2001 -> 2001

 

so I was getting a double or triple of the count in some places, which was then being summed. I solved this by doing an excel export of the attribute name, stand value 1 and stand value 2, removing duplicates then loading it again!

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi all,

 

issue solved. The centralised table had duplicate values in it, e.g:

 

engine CC, 2001 -> 2001

engine CC, 2001 -> 2001

 

so I was getting a double or triple of the count in some places, which was then being summed. I solved this by doing an excel export of the attribute name, stand value 1 and stand value 2, removing duplicates then loading it again!

Icey
Community Support
Community Support

Hi @Anonymous ,

 

The PBI file is missing.

file.PNG

 

Best Regards,

Icey

harshnathani
Community Champion
Community Champion

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.