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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
BooRadley
Frequent Visitor

Creating a summary table to count between two dates

I reviewed the other posts with titles that seem similar to what I am looking to develop, and the solutions either did not match the desired outcome or did not work with the dataset.

I am trying to create a summary table based on an instrument data table.  The instrument data table has the following columns: part number of the instrument, serial number, activation status, activation date, and deactivation date if there is one.  I have been unable to create this table.

 

Below is an overly simplified version of the incoming data.

Part Number

Serial Number

Status

Activation Date

Deactivation Date

PN001

10001

Deactivated

8/9/2022

11/26/2022

PN001

10002

Deactivated

9/25/2022

1/10/2023

PN001

10003

Active

11/15/2022

 

PN002

20001

Deactivated

9/21/2022

12/14/2022

PN002

20002

Deactivated

10/3/2022

1/3/2023

PN002

20003

Active

12/9/2022

 

PN002

20004

Active

1/16/2023

 

PN003

30001

Deactivated

8/12/2022

9/20/2022

PN003

30002

Deactivated

9/24/2022

11/30/2022

PN003

30003

Deactivated

11/7/2022

12/29/2022

PN003

30004

Active

11/14/2022

 

PN003

30005

Active

1/28/2023

 

 

The goal is to create a table that lists active instruments each month by counting the number of devices by part number indicated as active for that given month.

Month of Activity

Part Number

Count of Active
on the 1st of the month

2022-09

PN001

1

2022-09

PN002

0

2022-09

PN003

1

2022-10

PN001

2

2022-10

PN002

1

2022-10

PN003

1

2022-11

PN001

1

2022-11

PN002

2

2022-11

PN003

1

2022-12

PN001

3

2022-12

PN002

2

2022-12

PN003

2

2023-01

PN001

2

2023-01

PN002

2

2023-01

PN003

1

2023-02

PN001

1

2023-02

PN002

2

2023-02

PN003

2

 

Thank you in advance for any guidance and assistance.

2 REPLIES 2
amitchandak
Super User
Super User

@BooRadley , I think the approach on the blog and the attached file can help

 

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for your reply and the suggested two links.  Unfortunately, both show achieving the goal by creating a measure you can implement on a dashboard as a visual.  My goal is to create a table that I can then use further.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors