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
Hi,
Im new to DAX and Im having trouble using the calculate formula to filter dates. This is what i did:
1. Found the beginning of the latest month using this formula:
bMonth:=EOMONTH ( MAX ( fTransactions[Emision] ), -1 ) + 1
2. Use calculate function to filter everything after that date:
CALCULATE ( [Units], FILTER ( dDate, dDate[Date] >= [bMonth] ) )
I know the error is in step 1 because if I replace [bMonth] for the DATE formula, the filter works fine.
I dont understand what im doing wrong, can somenone please help?
Solved! Go to Solution.
Well... aparently I just solved this by joining step one and two togehter:
CALCULATE ( [Units], FILTER ( dDate, dDate[Date] >= EOMONTH ( MAX ( fTransactions[Emision] ), -1 ) + 1 ) )
I dont know why that makes a difference but there it is.
Well... aparently I just solved this by joining step one and two togehter:
CALCULATE ( [Units], FILTER ( dDate, dDate[Date] >= EOMONTH ( MAX ( fTransactions[Emision] ), -1 ) + 1 ) )
I dont know why that makes a difference but there it is.
User | Count |
---|---|
12 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
11 | |
7 |