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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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