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
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
Super User
Super User

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


@ 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!:
The Definitive Guide to Power Query (M)

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