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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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