Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Qualube
Helper II
Helper II

Variables

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)

1 ACCEPTED SOLUTION
Qualube
Helper II
Helper II

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)

View solution in original post

1 REPLY 1
Qualube
Helper II
Helper II

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)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.