Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I want to compare the values for the week of January 1st with the week of February 1st, does anyone know of a function that solves this?
Solved! Go to Solution.
@GabrielRF You can find the first week of the month by doing something like this:
Measure =
VAR __FWJan = WEEKNUM( DATE( 2024, 1, 1 ) )
VAR __FWFeb = WEEKNUM( DATE( 2024, 2, 1 ) )
VAR __Jan = SUMX( FILTER( 'Table', WEEKNUM([Date]) = __FWJan ), [Value] )
VAR __Feb = SUMX( FILTER( 'Table', WEEKNUM([Date]) = __FWFeb ), [Value] )
VAR __Result = __Feb - __Jan
RETURN
__Result
@GabrielRF You can find the first week of the month by doing something like this:
Measure =
VAR __FWJan = WEEKNUM( DATE( 2024, 1, 1 ) )
VAR __FWFeb = WEEKNUM( DATE( 2024, 2, 1 ) )
VAR __Jan = SUMX( FILTER( 'Table', WEEKNUM([Date]) = __FWJan ), [Value] )
VAR __Feb = SUMX( FILTER( 'Table', WEEKNUM([Date]) = __FWFeb ), [Value] )
VAR __Result = __Feb - __Jan
RETURN
__Result
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
14 | |
10 | |
7 |