The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello Community,
I am trying to count how many rows I have each day for a time line chart but based on the distinct values of its ID column,
Basically lets say i have 2 columns , one which is the date a ticket was created and another column which is the ticket id.. As everytime a ticket changes status, the ticket is repeated in my data and another row with the same ticket id and same date is created. If i do count of my date column, for each day (in order to see how many new tickets were created each day) then it will give me innacurate results as its going to count the same ticket as many times as it is in my data.
I want to count how many rows I have in that specific date but based on distinct id.
As seen in the print above this ticket is repeated 5 times. When I count tickets created on the 28/9/22 in this case I wanted to count as 1 and not 5 as its the same ticket with the same ID.
Kind Regards,
Daniel Carvalho
Solved! Go to Solution.
You can refer to the following measure
Sample data
Measure
Measure = var a=SUMMARIZE('Table','Table'[CASEID],'Table'[Date])
return COUNTAX(a,[Date])
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can refer to the following measure
Sample data
Measure
Measure = var a=SUMMARIZE('Table','Table'[CASEID],'Table'[Date])
return COUNTAX(a,[Date])
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the answer!
I was wondering how to this in a MTD/YTD measure. Currently I have it like this but its not giving me the right results:
User | Count |
---|---|
13 | |
8 | |
8 | |
7 | |
5 |
User | Count |
---|---|
21 | |
15 | |
15 | |
10 | |
7 |