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

Tables Relationships Duplicate values in table visualization

Hi, I need help to understand what's going on with the relationships between tables.
I have two tickets table from two differents softwares. I getting this information with SQL in Power BI.

I have dCalendar and Details table too.

The Details table brings the url from each client and it's connected to both tickets tables by the Client field. 
The dCalendar also it's connected to both tickets tables by the DataCompleta field.

When a try to put this informations in a table visuals, the values double.

print_1.png

 

print_2.png

 

What I'm doing wrong?

PS: The prints informations are in Portuguese.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @v-eachen-msft 

I try this but it doesn't work. 😕

I try to change the relationship between tables and my problem was partially resolved. The registers don't repeat anymore but the numbers are different comparing individuals values against values of table. Prints down bellow:

 

print.png

 

Same date and client but the numbers are different.

print2.png

 

I updated the new file onthe same link to use as a sample.

I appreciate any help!
  

View solution in original post

5 REPLIES 5
Yakob_Logerfo
New Member

I need help, new to Power bi, How can I create relationship between this table? I have to source of data one for DATA # & DATA $, And I have to completed calculated tables for each, how can I work with all tables by crating the relationship between the tables.
Annotation 2019-11-04 101616.png

v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could edit the [StartYear] and [EndYear] like the following DAX:

StartYear =
CALCULATE ( MIN ( Data[DataCompleta] ), ALLSELECTED ( Data[DataCompleta] ) )
EndYear =
CALCULATE ( MAX ( Data[DataCompleta] ), ALLSELECTED ( Data[DataCompleta] ) )

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Hello @v-eachen-msft 

I try this but it doesn't work. 😕

I try to change the relationship between tables and my problem was partially resolved. The registers don't repeat anymore but the numbers are different comparing individuals values against values of table. Prints down bellow:

 

print.png

 

Same date and client but the numbers are different.

print2.png

 

I updated the new file onthe same link to use as a sample.

I appreciate any help!
  

v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Could you please share your sample data and excepted result to me if you don't have any confidential Information. Please upload your files to One Drive and share the link here.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Thanks for your help @v-eachen-msft !
Here is the link with my sample.

https://drive.google.com/open?id=1F8lAv0HxOl4WTD9ert3rrFyEbfd-Rrsf

 

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.