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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
alamhaz
Helper I
Helper I

adding up measures but giving wrong values

Hi good day 

I have one measure and i want to add it up using one condtion but its taking wrong values check below Screenshot.  as highlighted i should be 1 but its showing 14, same behaviour is showing in others as well but some of them are fine, 

s3.JPG

below is the measure ss

s4.JPG

Please if anyone can help me i tried but cannot reslove it. 

1 ACCEPTED SOLUTION
alamhaz
Helper I
Helper I

I figure out the solution just use follwing measure. 

on time = Sumx(VALUES('InOutData(PAK)'[Date & Time]), IF( [test_3_FF]> 0 && [test_3_FF] <500,[test_3_FF],0))
its working fine 

View solution in original post

4 REPLIES 4
alamhaz
Helper I
Helper I

I figure out the solution just use follwing measure. 

on time = Sumx(VALUES('InOutData(PAK)'[Date & Time]), IF( [test_3_FF]> 0 && [test_3_FF] <500,[test_3_FF],0))
its working fine 
Greg_Deckler
Community Champion
Community Champion

@alamhaz Hard to say without test data but try dumping CALCULATE and moving your FILTER to the first parameter of your SUMX



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I am getting value form test_3_FF measure which is fine but now i want to add them on one filter that it shd add value after 13 pm to 10 pm , but value is wrong which is highlighted it should be 1 which is from test_3_FF measure, but when i use sumiftest measure its giving me wrong which is 14. 

also i tried this measure 

Total FF Value = IF([test_3_FF] > 0 && [test_3_FF] < 500,SUMX(VALUES('InOutData(PAK)'[Payroll #]),[test_3_FF]),0)
result is what i need but when i sum it up with sumx its giving me same values, see ss. (on time Col) 
s5.JPG

Helpful resources

Announcements
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.