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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Francease
New Member

Help with my relationship between tables

I have two tables 1. All Games 2. Register
Im doing two reports 1. Daily report 2. Agent report

When I put the relationship on both tables on my transaction_date my daily report is all working perfectly but my agent report is not. 

The problem in my agent report is that it is not getting all the agent names and dispalying a blank agent name.

When I put the relationship on both tables on my username(all games) and customer_name(register), now all of my agent names are showing but the registered count is not. 

how can i fix this so that both reports are dispalying correctly?

image.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Francease ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1715760954775.png

vtangjiemsft_1-1715760964831.png

(2) We can create a date table and then create model relationships.

Date = CALENDAR(DATE(2024,1,1),DATE(2024,12,31))

vtangjiemsft_2-1715761059672.png

(3) We can create a measure.

Measure = COUNTROWS(FILTER('Register','Register'[transaction_date]=MAX('Date'[Date])))

(4) Then the result is as follows.

vtangjiemsft_3-1715761100198.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Francease ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1715760954775.png

vtangjiemsft_1-1715760964831.png

(2) We can create a date table and then create model relationships.

Date = CALENDAR(DATE(2024,1,1),DATE(2024,12,31))

vtangjiemsft_2-1715761059672.png

(3) We can create a measure.

Measure = COUNTROWS(FILTER('Register','Register'[transaction_date]=MAX('Date'[Date])))

(4) Then the result is as follows.

vtangjiemsft_3-1715761100198.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Wilson_
Super User
Super User

Hi Francease,

 

Can you please share a model pbix and/or a screenshot of the model view? (If you don't know how, please check the pinned thread in the forum.) It would make debugging your issue easier. 🙂




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





AnalyticPulse
Super User
Super User

you need to create a relationship between the two tables, relationship doesnt exist between these two tables thats why your report is showing same values for all customer name.
you are using two different feilds from two different tables. 
create a relationship based on column which has relationships link. like foreign key and primary key.

My blog:
https://analyticpulse.blogspot.com/2024/03/superstore-sales-2022-vs-2023-year-on.html
https://analyticpulse.blogspot.com/
https://analyticpulse.blogspot.com/2024/04/case-study-powerbi-dashboard-developer.html

See my Pins :
https://pin.it/5aoqgZUft
https://in.pinterest.com/AnalyticPulse/



Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors