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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

Top Solution Authors