Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

incorrect sub-category (row) value?


While creating a matrix, I dragged "C_B_Date" in MTG table (highlighted in GREEN) to column and added two attributes in rows ("Drop or Active" in ALL_OD table & "Rolling_ttl_MTG" in MTG table, hilighted in BLUE)  


In "Rolling_ttl_MTG", there are four values: Group 1,2,3,and 4


In "Drop or Active", there are two values: Active and Drop. 


Thre relationships between tables are as the 1st. screenshot. 


In the 2nd screenshot, even the summation of Group 1,2,3,and 4 are correct (i.e. equal to grand total), but the sum of sub-row values (Active and Drop) in each year are NOT equal to correponding Group 1,2,3,and 4 in each year. For example, in 2015, the number of active and drop added up far less than the number of group 1.


Data samples for tables are as 3rd. screenshot.


screenshot 1screenshot 1screenshot 2screenshot 2screenshot 3screenshot 3





Many thanks!

Community Support
Community Support

Hi @ryan1982 

when i add columns in the matrix visual, it shows and error "can't detemine the relationship between fields".

If i create a table crossjoining two columns and create a measure, it shows as below

Measure = IF(ISINSCOPE('Table'[rolling_ttl_mtg]),IF(ISINSCOPE('Table'[drop]),"each value","sub sum"),"grandtoatl")


If you doesn't meet the error, your could try the measure i create above and make some changes to apply to your scenario.


Additionally, It seems ALL_OD table and MTG table should have ID &Date to detemine their relationship instead of only Date field.


Best Regards



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

Thank you Maggie


I will try your solution and report back.


How can I determine the relationship both based on date and master_customer_ID?



Hi @ryan1982 

You can create column like this in two table, then create a relationship between two tables based on the two columns.


from your screenshot, it seems MTG table doesn't have many columns, you may open edit queries to merge ALL_OD table and MTG table based on [id]&[date] column.


Best Regards


Helpful resources

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors