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

Matrix showing totals in all cells

I am having trouble with a matrix where is showing only the totals in every cell.  I am using two summarized tables together.  This the DAX code for the tables:

 

Credits table:

MonthlyActivationsP = 
SUMMARIZECOLUMNS(
	'All Licenses'[Primary Sales Rep],'All Licenses'[Year-Month A], "Primary Share"
,If(ISBLANK('All Licenses'[MonthActivationsPShare]),0,
Sum('All Licenses'[MonthActivationPShare])
	
))

Charges Table:

MonthlyDeactsP = SUMMARIZECOLUMNS(
	'All Licenses'[Primary Sales Rep],'All Licenses'[Year-Month D], "Primary Share Deact"
,if(ISBLANK([MonthDeactPShare]),0,
Sum('All Licenses'[MonthDeactsPShare])
	
))

Tables fields:tables.jpg

 

I am trying to put in a matrix both totals by Year/Month (top matrix) and this is what is doing.

Problem.jpg

 

 

1 ACCEPTED SOLUTION
alexvc
Resolver I
Resolver I

Hi there,

 

Did you create a relationship between these two tables? It seems to me there could be a problem with it, since both visualizations of each table per separate are ok but the visualization using both tables is not. From what I see you should have a third table where you have all the records of PrimarySalesRep and create a relationship between this and your Credits and Charges table

 

Let me know if it works

 

Alejandro

 

 

View solution in original post

3 REPLIES 3
alexvc
Resolver I
Resolver I

Hi there,

 

Did you create a relationship between these two tables? It seems to me there could be a problem with it, since both visualizations of each table per separate are ok but the visualization using both tables is not. From what I see you should have a third table where you have all the records of PrimarySalesRep and create a relationship between this and your Credits and Charges table

 

Let me know if it works

 

Alejandro

 

 

Anonymous
Not applicable

Thank you Alejandro!  The third table solved my problem.  I used the DAX UNION function, making sure to create the fields that were going to match complement in both tables existed. 

 

CreditsCharges = UNION(MonthlyActivationsP,MonthlyDeactsP)

Have a great weekend!

-Vanessa

Anonymous
Not applicable

I'll be trying the third table, and yes both tables have a relationship between their YYYY-MM and the Sales Rep.  Wish me luck.  

 

Thank you for your time. Smiley Happy

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.