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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
millenaamaral
Regular Visitor

Basic relashionships and Matrix visualization

Hi!!

 

I need help with something that seems quite basic, but i'm having some trouble.

I have two tables that have some similar columns: reseller, state and financial period.

One tells me how much my reseller should be paying me, the other is data from a system that tells me exactly how much they actually did pay.

 

I used the reseller column to create the relationship and when i try to add the state to the matrix, it does not work (because i'm using the state from one table, or the state from the other, so it can't filter).
How can i do this right?

corte.PNG

ResellerStateValue System 1Financial Period
ABCNew York301/Aug - 10/Aug
ABCCalifornia201/Aug - 10/Aug
ABCTexas701/Aug - 10/Aug
DEFNew York101/Aug - 10/Aug
DEFCalifornia201/Aug - 10/Aug
DEFTexas1001/Aug - 10/Aug
GHINew York401/Aug - 10/Aug
GHICalifornia501/Aug - 10/Aug
GHITexas701/Aug - 10/Aug

 

ResellerStateValue System 2Financial Period
ABCNew York101/Aug - 10/Aug
ABCCalifornia301/Aug - 10/Aug
ABCTexas401/Aug - 10/Aug
DEFNew York501/Aug - 10/Aug
DEFCalifornia201/Aug - 10/Aug
DEFTexas301/Aug - 10/Aug
GHINew York501/Aug - 10/Aug
GHICalifornia701/Aug - 10/Aug
GHITexas401/Aug - 10/Aug

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@millenaamaral - Can you create a combo key like this? Deja vu?

Key = [Reseller] & "-" & [State]

 

In both tables. Form your relationship on that?

 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@millenaamaral - Can you create a combo key like this? Deja vu?

Key = [Reseller] & "-" & [State]

 

In both tables. Form your relationship on that?

 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks, @Greg_Deckler!!

I'm gonna try it on my actual data later.

 

key.png

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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