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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
andy808
Helper III
Helper III

Divide result in 1 column over a FIXED total from another column (except when filtered by date)

I am trying to get the % by dividing 1 result in a column over a TOTAL # from another column that is fixed/that doesnt get filtered except by Date slicer.

 

Right now I am getting 311/1328 (for a particular date range) but when I change my slicer the Total Paid Hours ALL is not changing.

 

My measure for Total Paid Hours ALL is: 

Total Paid Hours ALL = CALCULATE([Total Paid Hours], ALL())
-------------------------------------------------------------------------------- 
***Here is my [Total Paid Hours] measure which already has a filter = 
 = CALCULATE(DISTINCTCOUNT(ASTimeEntry[TimeRecordedOnDate]),(FILTER('Date Table','Date Table'[IsWeekend] = False ))) *8
---------------------------------------------------------------------------------
 

This table is for 1 person, 3 different categories:

andy808_3-1677631147595.png

 

To calculate the Total Paid Hours % I have been using: 

Total Paid Hours % = [Sum of Tracked Hours] / [Total Paid Hours] which doesnt work when I start to filter the 3 categories. I am getting :
andy808_4-1677632375560.png

 

 Appreciate any help here as soon as possible 🙂
 

 

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

CALCULATE([Total Paid Hours]ALLSELECTED())

View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

CALCULATE([Total Paid Hours]ALLSELECTED())

I will try this, thank you!

 

I did find a solution that works:

Total Paid Time No Category Filter = CALCULATE(
    'MeasuresApplied'[Total Paid Hours],
    ALL(
        'ASTimeEntry'[TimeLoggedCategory]
    )
)

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.