Forum Discussion

Francease's avatar
Francease
New Member
2 years ago
Solved

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?

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Francease ,

     

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

    (1) This is my test data. 

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

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

    (3) We can create a measure.

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

    (4) Then the result is as follows.

     

    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. 

3 Replies