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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
unknown917
Helper IV
Helper IV

Calculating a divide for a table - what am I missing??

I have a table like below, that details cases & hrs for a large datatset.  The intent here is to calculate cases per hr.  The desired result is to be able to visualize CPH at 3 different levels:  Cumulative CPH (if no slicer selected), Unit (when selected), Hub (when selected) and finally down to the building CPH.  I have no problem getting the correct number at the row level, but once I remove slicers, the calc is no longer correct.  It must be simple, but I'm having a total block.

 

UnitHubBldgCasesHrs
11a778331396
11b757131121
11c4209536081
12d20723515
12e2428742769
12f1893183233
23g3643893777
23h80995910862
23i4269256403
24j119439425
24k1384452190
24l5045906522

 

Any help would be greatly appreciated!

2 ACCEPTED SOLUTIONS
MasonMA
Super User
Super User

This will work correctly at all levels, 

Total Cases = SUM(Table[Cases])

Total Hours = SUM(Table[Hrs])

CPH = DIVIDE([Total Cases], [Total Hours])

MasonMA_0-1772743532291.png                   MasonMA_1-1772743690569.png

 

 

View solution in original post

FBergamaschi
Super User
Super User

Hi @unknown917,

can you please clairfy better what you want to achieve, showing examples of the 3 levels you are defining?

 

1 - Cumulative with respect to what?

2 - Unit - what do you mean here? And here the CPH would still need to be cumulative?

3 - Hub - what do you mean here? And here the CPH would still need to be cumulative?

Please show images and clearly point out the desired results including in case slicer etc

 

Thanks

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

Consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

 

View solution in original post

6 REPLIES 6
FBergamaschi
Super User
Super User

Hi @unknown917,

can you please clairfy better what you want to achieve, showing examples of the 3 levels you are defining?

 

1 - Cumulative with respect to what?

2 - Unit - what do you mean here? And here the CPH would still need to be cumulative?

3 - Hub - what do you mean here? And here the CPH would still need to be cumulative?

Please show images and clearly point out the desired results including in case slicer etc

 

Thanks

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

Consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

 

MasonMA
Super User
Super User

This will work correctly at all levels, 

Total Cases = SUM(Table[Cases])

Total Hours = SUM(Table[Hrs])

CPH = DIVIDE([Total Cases], [Total Hours])

MasonMA_0-1772743532291.png                   MasonMA_1-1772743690569.png

 

 

The issue with this is that when I drill down to the Bldg level, the CPH target stays the same, when it should calc the CPH at the bldg level

 

Can you please sow images abou the issue? Otherwise we cannot help more

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

Consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

Hi @unknown917 ,

Thanks for reaching out to the Microsoft fabric community forum. 

 

I would also take a moment to thank @FBergamaschi   , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

Could you please share the images

 

 

Best Regards, 
Community Support Team

Hi @unknown917 ,

I hope the issue has been resolved. If you continue to experience any problems, please reach out here and we will assist you.

Best Regards, 
Community Support Team

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.