Forum Discussion
Hide/Remove row based on criteria
- 7 years ago
You shouldn't need to use VALUE with the measures. That just converts strings to numerical values. If the status number measure actually returns "4" instead of 4, you can add quotations around the comparison value to keep it simple.
ECMFilter2 = IF ( SELECTEDVALUE('Project1)'[EffectiveDate]) < TODAY() && [ME Status Number] = 4 && [QE Status Number] = 4 && [MR Status Number] = 4 && [PC Status Number] = 4 && [TL Status Number] = 4, TRUE(), FALSE() )Nothing's changed for the date conditional. Does it still return true in all instances?
The formula isn't erroring out anymore, but it is not working properly. I have a project which meets all of the criteria of the formula, but is returning as False. Any suggestions?
- Cmcmahan7 years ago
Resident Rockstar
I may have messed up again and forgotten quotation marks around each of the Complete values. Did it not give you some sort of warning that it didn't know what Complete was?
Try this update:
HideProject = IF ( SELECTEDVALUE(Projects[EffectiveDate]) < NOW() && SELECTEDVALUE(Projects[ME]) = "Complete" && SELECTEDVALUE(Projects[QE]) = "Complete" && SELECTEDVALUE(Projects[MR]) = "Complete" && SELECTEDVALUE(Projects[PC]) = "Complete" && SELECTEDVALUE(Projects[TL]) = "Complete", TRUE(), FALSE() )If this still doesn't work, create another measure to test each condition for true. If you can narrow down which part is evaluating to false, you can fix that and hopefully fix the measure.
- Anonymous7 years agoNot applicable
I had already added the qutations. I will test each condition and let you know what I find. Thank you for your help!
- Anonymous7 years agoNot applicable
Tested each indvidually. The condition for effective date returned all "True" values even if the effective date had not passed yet. The conditions for the indvidual role columns returned all "False" values even if the status was set to complete. Not really sure whats going on.