Forum Discussion
Subtotal includes blank values
- 3 years ago
Hi,
Write this measure
Hours Blank = SUMX(FILTER(VALUES(Jobs[Job Number]),[Technician Labor Hours]<>BLANK()),[All Labor Hours])Hope this helps.
- Ashish_Mathur3 years agoSuper User
Hi,
Write this measure
Hours Blank = SUMX(FILTER(VALUES(Jobs[Job Number]),[Technician Labor Hours]<>BLANK()),[All Labor Hours])Hope this helps.
- Leh3 years agoNew Member
Thank you very much Ashish_Mathur .
This has worked wonders for my report.
I just do not want to blindly follow the DAX measure that resolved my issues. If you have time and patience, can you indulge me by answering if I understood the measure correctly? I mean I tried both SUMX and FILTER in my testing but somehow didn't get the desired result as your measure has. I guess I just couldn't follow the concept of sequence or how to envelope the DAX code to get the desired result.
Looking at the measure, the "FILTER(VALUES..." evaluates each row if the [Techinician Labor Hours] at the Job Number level is blank and excludes that row in summing up the [All Labour Hours] measure that already strips all the filters by using "ALL(..". Is that the right interpretation?
Thank you again.
- Ashish_Mathur3 years agoSuper User
You are welcome. That is correct.