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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
stack23
Advocate II
Advocate II

Active Count of Table with Start and End Date by Year

I have a customer database table that contains their active date, say for a bank account open:

 

  1. CustomerRecord
  2. Customer Name
  3. Start Active Date
  4. End Active Date (Blank willl be active)

I would like to create a chart which lists Cutomer Count Active By Year.  See below.

How would I do this in Power BI? I know how to do this in SQL scripts.

Just FYI, this table has around 5 million rows.

 

CustomerRecordIdCustomerNameBeginDateEndDate
1Tom3/1/20125/7/2018
2Michelle8/3/201512/1/2015
3Joe6/14/20142/9/2018
4Emily11/16/20168/24/2017

 

customercount.png

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@stack23,

 

You may refer to the following post.

https://community.powerbi.com/t5/Desktop/Create-date-Parameter-asat-date-to-get-active-customers/m-p...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@stack23,

 

You may refer to the following post.

https://community.powerbi.com/t5/Desktop/Create-date-Parameter-asat-date-to-get-active-customers/m-p...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

this only shows 1 date, I want to generate a chart above, that will show a trend analysis with multiple dates, given my customer table

Maybe, I want to select a range of date 1/1/2012 to 1/1/2018, and it will show annual year axis, with customer counts by year

@stack23,

 

It is similar. Just change to year accordingly.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.