Skip to main content
cancel
Showing results for 
Search instead 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.

Reply
andy808
Helper II
Helper II

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
Microsoft Fabric Learn Together

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

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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