Create measure directive