Forum Discussion

JillianP333's avatar
JillianP333
New Member
5 years ago

Dax command for does not start with

Hello- I'm trying to write a measure where I filter first by timesheet tasks, which is working, but then I also want to filter out the client numbers that start with a z.  Any help appreciated.

 

 

 

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable
    [Hours ...] =
    CALCULATE(
    	[Hours Worked], -- this should be your base measure
    	KEEPFILTERS(
    		'dw Timesheets'[Taks] in {...},
    	),
    	KEEPFILTERS(
    		-- Are you sure it's called ClientNumber?
    		LEFT('dw Clients'[ClientNumber], 1) <> "z" 
    	)
    )