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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Dallas7890
Resolver I
Resolver I

Dax measure not working

Hello,
I am hoping that someone can help me to write or fix this  Dax measure. I am trying to calculate the Sum of Hours based on two column filters. The Table is called Leave Balances FY Financial Accruals
and the first column is called Time Off Plan details = "Total Balance Remaining" and the second column is called Time Off Plan = "Time in Lieu" - it returns a blank value. However if I just filter the values manually under the filter pane and use just the Total Hours measure or just put the Total Hours in a card it returns a value. 

Filtered Hours Sum =
CALCULATE(
    SUM('Leave Balances FY Financial Accruals'[Total hours]),
    'Leave Balances FY Financial Accruals'[Time Off Plan details] = "Total Balance Remaining",
    'Leave Balances FY Financial Accruals'[Time Off Plan] = "Time in Lieu"
)


Thank you kindly
3 ACCEPTED SOLUTIONS
bhanu_gautam
Super User
Super User

@Dallas7890 , Try using below measure

 

Filtered Hours Sum =
CALCULATE(
SUM('Leave Balances FY Financial Accruals'[Total hours]),
FILTER(
'Leave Balances FY Financial Accruals',
'Leave Balances FY Financial Accruals'[Time Off Plan details] = "Total Balance Remaining" &&
'Leave Balances FY Financial Accruals'[Time Off Plan] = "Time in Lieu"
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

Dallas7890
Resolver I
Resolver I

I figured out my problem - There was white space in front of each value from the Time Off Plan details. Thank you but this has been resolved. 

 

View solution in original post

Thank you for helping me to correct my measure Bhanu. I thought it was just because of the white space only. 

View solution in original post

3 REPLIES 3
Dallas7890
Resolver I
Resolver I

I figured out my problem - There was white space in front of each value from the Time Off Plan details. Thank you but this has been resolved. 

 

Thank you for helping me to correct my measure Bhanu. I thought it was just because of the white space only. 

bhanu_gautam
Super User
Super User

@Dallas7890 , Try using below measure

 

Filtered Hours Sum =
CALCULATE(
SUM('Leave Balances FY Financial Accruals'[Total hours]),
FILTER(
'Leave Balances FY Financial Accruals',
'Leave Balances FY Financial Accruals'[Time Off Plan details] = "Total Balance Remaining" &&
'Leave Balances FY Financial Accruals'[Time Off Plan] = "Time in Lieu"
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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