Creating a restricted measure and a calculated measure