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
EllaJ234
Frequent Visitor

Count of items per day

Hi, 

 

I'm struggling to create a measure that counts the number of items per day in my issue log. However, I cannot get a count of the number of times a certain platform is used for each date in the Created Date column. I feel this is because there are duplicate Created Dates are in the table to account for more than one issue across the platforms. 

 

So for example: 

 

Created DatePlatformIssue Type
01/01/2020Axyz
01/01/2020Axyz
02/01/2020Axyz
02/01/2020Bxyz

 

So I would like a count that shows that on 01/01/2020 there were 2 instances of Platform A. But it seems a lot of count functions struggle when there are duplicate dates. Or just attempt to count all instances across the entire table. The main reason I would like a count for this is so I can create a line graph with the date as the x-axis and count per day on the y axis. 

 

Thank you in advance 😄 

 

1 ACCEPTED SOLUTION
EllaJ234
Frequent Visitor

Hi everyone! 

 

Thank you for all of your answers! I tried them all but couldn't get exactly what it was I wanted. After some futher playing around I found that if I created a duplicate of data table, filtered by each platform  and removed all columns except for the date and the platform I was then able to apply a simple count equation. This gave me exactly what I needed which was how many times each platform appeared for each date. I've checked the accuracy against the raw data file and it all looks good! It might be a longer way of doing things but it works and doesn't look messy 🙂 

 

Using this I've now been able to create line graphs and tables with the figures I need!

 

Thanks again! 

View solution in original post

5 REPLIES 5
EllaJ234
Frequent Visitor

Hi everyone! 

 

Thank you for all of your answers! I tried them all but couldn't get exactly what it was I wanted. After some futher playing around I found that if I created a duplicate of data table, filtered by each platform  and removed all columns except for the date and the platform I was then able to apply a simple count equation. This gave me exactly what I needed which was how many times each platform appeared for each date. I've checked the accuracy against the raw data file and it all looks good! It might be a longer way of doing things but it works and doesn't look messy 🙂 

 

Using this I've now been able to create line graphs and tables with the figures I need!

 

Thanks again! 

Could you please post the example code and the duplicated table for me? I'm not sure how to do this. Thank you!

Ashish_Mathur
Super User
Super User

Hi,

Your question is not clear.  Drag Created Date and Platform to the matrix visual and write this measure

=distinctcount(Data[Issue type])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @EllaJ234 ,

Please have a try.

Create a measure.

Measure = CALCULATE(COUNT('Table'[Platform]),FILTER(ALL('Table'),'Table'[Created Date]=SELECTEDVALUE('Table'[Created Date])&&'Table'[Platform]=SELECTEDVALUE('Table'[Platform])))

11.PNG

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@EllaJ234 , exepcted output is not clear.

 

Try measure like

 

countrows(summarize(table, [Created Date],[Platform Issue],[Type]))

 

or

 

countrows(summarize(table, [Created Date],[Platform Issue]))

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

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.