Forum Discussion
Filtering by Clients not working on measure
Hi,
Thanks for helping me.
could you please let me know what it is exactly I need to screenshot? Would that be the relationship tab with all the tables linked to one an other or else?
Apologises but as I said I am quite new and I am not sure what you require to assit.
Thank you.
Hi corange,
If possible, could you please inform me more detailed information (such as your sample data, relationship, your current design and your expectingoutput)? Then I will help you more correctly
By the way, you also could upload your pbix file to onedrive or other place which we could access. Please do mask sensitive data before uploading.
Thanks for your understanding and support.
Best Regards,
Zoe Zhi
- corange7 years ago
Post Patron
Hi Zoe,
Thank you very much for your reply.
I have one data source which my company's datawarehouse and I use 5 tables I source from it. I have calculated a couple of measure to obtain what I would like to display.
1) I have used the start time and end time of all employees to calculate the total time difference for each time they log in and out
2) I calculated the ave hours using AVERAGE X
3) I then did Duration Format = TIME(0,[DifferenceDur],0) so I could have the ave hours display in a format that make sense.
So all of the above has been calculated using the employee startstop table. I now need to determine the above / client. I can't actually create a relationship between both tables are there are no unique values. I have tried the solution explained in this link https://blogs.technet.microsoft.com/cansql/2016/12/19/relationships-in-power-bi-fixing-one-of-the-columns-must-have-unique-values-error-message/ , without success.
Here a snapshot of the relationships I have between the different table:
What I would like to accomplish is that when I click on a client code, the ave working hours updates for that specific clients and take into consideration only the employee that worked for them on that specific day or period. At the moment, POWER BI gives me an ave working hours that stays the same no matter which client I select which can't be correct.
Is that a bit more specific? Do you have an email so I can share my file with you or else?
Thank you.