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

realtion ship

hiii guys

how  can i create a relation ship between 2 tables

so that if i click on a month in slicer all the 3 graths will display the corresponding month data 

i am attaching my pbix file plz someone help me with dizimage.pnghttps://drive.google.com/file/d/1Pv5RzyGDc1JeH6TSgDLSJMbJ0xhj2J4C/view?usp=sharing 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Unless there is 1-M between Table and Query1 , You need to create Bridge Table.

 

https://www.seerinteractive.com/blog/join-many-many-power-bi/

Also refer :https://www.sqlbi.com/articles/the-importance-of-star-schemas-in-power-bi/

 

Yet to check your file

View solution in original post

4 REPLIES 4
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

How about adding conditions in your formula like

measure1 =
CALCULATE (
    [measure],
    FILTER (
        query1,
        FORMAT ( query1[call closed], "MMMM" ) = SELECTEDVALUE ( 'table'[monthname] )
    )
)

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Greg_Deckler
Super User
Super User

@Anonymous - I do not see any common fields between those two tables. You have a call opened in the one table and a call closed in the other. Seems like you are missing a Requiest ID in Query1 or a call closed in Table. >shrug<


@ 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...
amitchandak
Super User
Super User

@Anonymous , Unless there is 1-M between Table and Query1 , You need to create Bridge Table.

 

https://www.seerinteractive.com/blog/join-many-many-power-bi/

Also refer :https://www.sqlbi.com/articles/the-importance-of-star-schemas-in-power-bi/

 

Yet to check your file

Anonymous
Not applicable

Hiii amit

Can you help me with this I tried to create a relationship in different ways but couldn't make it.can you help me I'm trying really hard for this.

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.

Top Solution Authors