cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

relationship table not work

Hello,

 

I have these table:

Screenshot_1.png

 

I have the following relationships between the tables:

activities->id_user = users->id_user ----both

target->id_user = users->id_user ----both

 

I have this slicers:

Screenshot_2.png

 

These slices only work in the table they were taken from:

Screenshot_3.png

In my case total target for 2018 is 70.

 

How can I create a relationship to change the values in both tables?

 

Thank you!

 

 

3 REPLIES 3
Highlighted
Continued Contributor
Continued Contributor

Re: relationship table not work

Hi @sea,

 

This filter doesn't affect the target table because the relationship is just on "id_user".

When you select a year on "Activities" table it simple gets all rows from Target table (or filtering by users).

 

Do you wanna compare the target per day of activities ? If yes, you can use the append function on those 2 tables.

 

Let me know if I can help you.

 

Thanks, 

 

Ricardo

Highlighted
Frequent Visitor

Re: relationship table not work

I want to see the target and the activities for the selected year.

Highlighted
Continued Contributor
Continued Contributor

Re: relationship table not work

@sea,

 

You can append those 2 tables and either filter by the same data field or create a new date table.

I tried it here, when I select "2018" it gives me 210. I think it's correct once you have 3 users, right ? 

About the activities, are u gonna count the numbers of dates ? If yes, you can count the number of dates where the column "target_activities" is blank after append those tables.

 

 Tks,

 

Ricardo

Helpful resources

Announcements

August Community Highlights

Check out a full recap of the month!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Solution Authors