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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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