Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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 Date | Platform | Issue Type |
01/01/2020 | A | xyz |
01/01/2020 | A | xyz |
02/01/2020 | A | xyz |
02/01/2020 | B | xyz |
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 😄
Solved! Go to Solution.
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!
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!
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.
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])))
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.
@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]))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
56 | |
56 | |
38 | |
29 |
User | Count |
---|---|
75 | |
62 | |
45 | |
40 | |
40 |