cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
corange Helper IV
Helper IV

Filtering by Clients not working on measure

Hi everyone,

 

I am completely stuck. I am quite new to BI and I don't know what I have done that's not correct. I will try to be as specific as possible.

 

I am trying to display the average working hours for specific clients. However, it turns out that when I click on the client or select via the filters option, all measures update except for the average working hours one. it always the same not matter which client I use. Moreover, each employee as an ID and I always obtain the same list too.

 

I have got diverse tables linked together. The two tables I am using are not directly in a relationship but linked through an intermediate table. I have created a measure ave working hours using the start time and finish time of our employees.

 

Thanks in advance for your help.

 

Capture.PNG

 

 

 

6 REPLIES 6
sivapandi Helper I
Helper I

Re: Filtering by Clients not working on measure

can you share data model screenshot?

corange Helper IV
Helper IV

Re: 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.

sivapandi Helper I
Helper I

Re: Filtering by Clients not working on measure

TEMP_5.png

 

I need this screenshot as shown in above , to check your data model relations.

Community Support
Community Support

Re: Filtering by Clients not working on measure

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

corange Helper IV
Helper IV

Re: Filtering by Clients not working on measure

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-co..., without success.

 

Here a snapshot of the relationships I have between the different table:

 

Capture.PNG

 

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.

Highlighted
corange Helper IV
Helper IV

Re: Filtering by Clients not working on measure

Hi,

 

Just following up on that one. Did you have a chnace to look into it?

 

Thanks for your help.

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors