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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
nanat
Frequent Visitor

How to write DAX formula for Filter based on Dates in Power Bi

Hi guys,

 

I require some help ASAP.

 

I have 2 set of dates - Customer Commencement Date and Customer Order Date (when they order products). I am trying to get the total number of signed customers based on the order dates. We have new customers signing up everyday so the total number of signed customers should change according to the order dates.

 

Thanks.

 

3 REPLIES 3
ChandeepChhabra
Impactful Individual
Impactful Individual

@nanat : Could you please share a sample of your data and the expected result ?

 

@ChandeepChhabra: thank you for your reply. I am trying to get the number of active customers (below graph, grey bar) based on their service commencement dates to change according to the year-month of ordering dates. At the moment, the number of active customers remain static. My current measure to get the number of active customers is:

 

Active Customers = CALCULATE(DISTINCTCOUNT(AllCustomers),AllCustomers[Status]="CUSTOMER-Signed"||AllCustomers[Status]="CUSTOMER-Free Trial")

I have no idea how to add in conditions to look at the commencement dates of these active customers and change according to the year-month of order dates. Thanks.


Capture.JPG

@nanat Can you send me a sample of your data? I need to take a look at it

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.