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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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