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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Calculate number of dates in column

Hello,

New with power bi and didn't find anything that worked for me in the community.

If I have the follwing data:

Date_OutCar type
7.6.20201
8.6.20201
9.6.20201
10.6.20201
10.6.20202
10.6.20202
11.6.20201
11.6.20203
11.6.20201
11.6.20202

 

I would like to be able to count the how many instances there are of each date, and if possible, also count for dates that are not included, see this table:

 

Date_OutCount
7.6.20201
8.6.20201
9.6.20201
10.6.20203
11.6.20204
12.6.20200

 

Also, if I would filter by car type, only, so if I would filter out for Car Type 1 only, then the results would be:

 

Date_OutCount for Car Type 1
7.6.20201
8.6.20201
9.6.20201
10.6.20201
11.6.20202
12.6.20200

 

Is there a clever way to accomplish this?

any help is appreciated 🙂

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Please find the attached pbix after the signature. See if it can help.

 

Count of type column used. Count Measure created.

Type used as slicer

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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