cancel
Showing results for
Did you mean:

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Helper I

## Tickets Per Hour Calc involving 2 different tables

The Scenario is I have 2 tables.

Solves

Date

Name (first last initial)

Tickets Solved

Hours Worked

Activity Date

Actual Hours

Name (Long Name)

The Hours Worked table has other fields but they are not used for this.  The Name i have related through a bridge table that is working very well.  The Dates are also bridged.

I have set a new measure TPH S/H = SUM(Solves[# Tickets Solved])/SUM('Hours Worked'[Actual Hours])

As you can see I have a repeating number that is just not correct.

Can someone show me where my error is please.

1 ACCEPTED SOLUTION
Helper I

I actually believe i figured it out

TPH 3v2 = DIVIDE(CALCULATE(SUM(Solves[# Tickets Solved])),CALCULATE(SUM('Hours Worked'[Actual Hours])))

First I created a new measure, checked the math and it seems to work out.

If you have a sample up and running could you check this and make sure I am not just lying to myself lol...

9 REPLIES 9
Super User

Hi @MAS13,

Taking into account that you have the names and dates bridged from wich tables are you using in your table, are the ones from the bridges or from one specific table (solves or Hours Worked).

When do bridges you should use the dimension tables to make your visuals.

Regards,

MFelix

Regards

Miguel Félix

Proud to be a Super User!

Check out my blog: Power BI em Português

Helper I

Thank you for the quick response.

I have 2 slicers on the page Name and Date. Both are from my bridge tables

The matrix you are looking at contains the Date from the date table, Actual Hours from the Hours worked tbale Ticket Solves from the Solves Table and the measure i made which is also stored in the Solves Table.

Could you please explain why dimension tables... Sorry limited time on the BI platform

Super User

Hi @MAS13,

Dimension tables = bridges tables, just a question of naming.

Can you share a sample of your file, or a data example of your tables and how the bridges tables are setup, so I can replicate the model.

Regards,

MFelix

Regards

Miguel Félix

Proud to be a Super User!

Check out my blog: Power BI em Português

Helper I

I am sorry the best I can do is provide pics due to constraints here..

The Name Solves field is listed as: John D

Agent Name is listed as: John Doe

I do have them side by side and works correctly within my slicer.

As you can see very basic Date table so I can relate the 2 fact tables.

Please let me know if you need any other info, or I did not supply enough

Also again sorry about not being able to send you a file..

Super User
Is the Soves (Name) equal to Agent lists (Names Solves)?

Example John Doe = John Doe or John Doe = John D

Regards
MFelix

Regards

Miguel Félix

Proud to be a Super User!

Check out my blog: Power BI em Português

Helper I

I actually believe i figured it out

TPH 3v2 = DIVIDE(CALCULATE(SUM(Solves[# Tickets Solved])),CALCULATE(SUM('Hours Worked'[Actual Hours])))

First I created a new measure, checked the math and it seems to work out.

If you have a sample up and running could you check this and make sure I am not just lying to myself lol...

Super User

Hi @MAS13,

Believe it's correct. I wasn't abble to make a mockup data but seem ok.

Regards.

MFelix

Regards

Miguel Félix

Proud to be a Super User!

Check out my blog: Power BI em Português

Helper I

John Doe = John Doe|John D

Helper I

Yes in my bridge table the 2 colums do line up next to each other and when i change my slicer it does change the data correctly for both fact tables in a test i did

Announcements

#### Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

#### Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

#### Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors