Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi I am just getting used to using variables and can't figure why this doesn't work. What I have is a Customer list with the date the account was created and what I need to know is whether the customer base is going year on year.
So I have created a variable to filter this table by the created date and whether it was before or on the 31st March 2017.
I thought I could then simply count the rows and return the correct number however it doesn't work.
CUST 2016-17 =
VAR CustomerCreation = FILTER(CUSTTABLE,CUSTTABLE[CREATEDDATETIME] <= 31/03/2017)
RETURN
COUNTROWS(CustomerCreation)
Solved! Go to Solution.
Sorry I have now managed to discover the problem and amended the formula:
CUST 2016-17 =
VAR CustomerCreation = FILTER(CUSTTABLE,CUSTTABLE[CREATEDDATETIME] <= DATE(2017,03,31))
RETURN
COUNTROWS(CustomerCreation)
Sorry I have now managed to discover the problem and amended the formula:
CUST 2016-17 =
VAR CustomerCreation = FILTER(CUSTTABLE,CUSTTABLE[CREATEDDATETIME] <= DATE(2017,03,31))
RETURN
COUNTROWS(CustomerCreation)
User | Count |
---|---|
59 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
39 |