cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
anongard Regular Visitor
Regular Visitor

Arithmetic across tables w/ many:one relationship

Hey all,

 

I've got two tables, one with 640 records, one with ~14,000. The 640 are a subset of the 14,000, but from a different database. There is a common field, call it User ID. I've set up a relationship between the two tables - BI tells me it can only be Many: One. 

 

I am now trying to do math with two separate fields. I created a new column in Table A, and tried to insert the expression ='TableB'[ColumnB] / 'TableA'[ColumnA]. Two things: First, in the autocomplete dropdown menu, when I hit ', only entries for TableA autopopulate, leading me to think there's an issue with recognizing the relationship between the two tables. Second, when I finish the expression and hit enter, I get the error message "A single value for column 'UserCount' in table 'ViewAccounts' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."

 

I'm not sure what this means or why I am not able to complete this operation. There shouldn't be a single value for UserCount, each record has a different count. That's the point. 

 

I'm assuming it doesn't recognize the relationship between the two columns, and so it won't do the math for the records that match between tables. I thought I was doing this correctly, but apparently not. Any help is appreciated. Thank you! 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Arithmetic across tables w/ many:one relationship

@anongard,

 

Better to share us some sample data and the expected result. You may do research into RELATED Function first.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Arithmetic across tables w/ many:one relationship

@anongard,

 

Better to share us some sample data and the expected result. You may do research into RELATED Function first.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 54 members 1,182 guests
Please welcome our newest community members: