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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Phobos1
Helper I
Helper I

Calculations across tables

Hello, I am trying to do a calculation across two tables that both relate to a date dimension table. Don't know if it is possible or how to do the dax. There is one table with hours per day per employee that contains the nominal number of hours. Then there is a table with hours by day by employee for absence. Now I need to know the percentage calculated as absence hours divided by nominal hours, and that on a quarter level.
So I figure to sum the absence hours for all employees, sum the nominal hours for all employees and do a division. The result should be an absence % for a particular quarter, the datasets contain data for the past 4 years. Does this work in a measure, and how does it become drillable in the date dimension?

4 REPLIES 4
Phobos1
Helper I
Helper I

This was solved with help of a colleage, so topic can be closed.

Phobos1
Helper I
Helper I

Phobos1_0-1702466542926.png

Hello, thanks for your reply, I have made a ppt to visualize what I mean. I hope it is visible like this, I pasted it in, attaching the file is not an option it seems. Let me know if you need more info, really appreciate the help.

 

Hi, @Phobos1 

 

Can you provide some of the example data for these tables? Sensitive data can be removed in advance.

vzhangti_0-1703666354252.png

 

Best Regards

v-zhangti
Community Support
Community Support

Hi, @Phobos1 

 

Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.

 

Best Regards,

Community Support Team _Charlotte

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.