Forum Discussion
Filter contexts with constants
- 7 years ago
Hi pcav ,
Believe that you need to make changes on in order to force your working orders to get the IN from the enginners table try this code:
WorkingHours IN = IF ( CALCULATE ( [Hours Booked]; Engineers[Discipline] = "IN" ) = BLANK (); BLANK ();) [Working Hours])In this measure I'm checking if the Booked hours are equal to IN if not will return blank for your measure, we are forcing the filter you added in the table visual for IN.
Regards,
MFelix
Hello pcav ,
one way for you to do this is to check if the hours booked returns a value and only then display the working hours
WorkingHours = IF(ISBLANK(HOURSBOOKED), BLANK(), WORKINGHOURS)
- pcav7 years ago
Helper I
Thanks for your reply, but this doesn't solve the problem, I still get the "blank" rows for the Service engineer albeit the working hours field is blank.
- MFelix7 years ago
Super User
Hi pcav ,
Believe that you need to make changes on in order to force your working orders to get the IN from the enginners table try this code:
WorkingHours IN = IF ( CALCULATE ( [Hours Booked]; Engineers[Discipline] = "IN" ) = BLANK (); BLANK ();) [Working Hours])In this measure I'm checking if the Booked hours are equal to IN if not will return blank for your measure, we are forcing the filter you added in the table visual for IN.
Regards,
MFelix
- pcav7 years ago
Helper I
Thanks very much for taking the time to reply.
This works just great and is MUCH better that the solution I came up with
Regards