DATEPART('week',DATEADD('day',-1,DATETRUNC('month',[Date])),'Monday')
Calculate the maximum week number of the previous month for "Date" field with Monday as the start of the week.{ FIXED DATETRUNC("month",[Date]):MIN(DATEPART('week',[Date],'Monday'))}
Calculate the minimum week number for the current month's actual data for "Date" field with Monday as the start of the week.DATEPART('week',[Date],'Monday') - [ Minimum week number for the current month] +
IF [ Minimum week number for the current month] = [Maximum week number of the previous month] THEN 0 ELSE 1 END
With Monday as the start of the week, the week number is calculated for the "Date" field and a calculation is performed to determine what number it is in the current month.001470566
53 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.