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.
Dear All,
I am not able to find a solution to following issue
I have a table with multiple columns - with ID, date, description, ...
I need to calculate the total distinct IDs - for only the earliest occurance by date - so I can visualize it per year/month based only on the earliest occurance.
Now the column chart gets mixed up with the dates.
ID | Date | Description | ... |
1 | 11/11/2023 | Not relevant | |
1 | 12/11/2023 | ||
2 | 10/11/2023 | ||
2 | 11/11/2023 | ||
3 | 5/11/2023 | ||
4 | 6/11/2023 |
example graph
Hope it is a bit clear.
Kind regards
The earliest date the ID occurs in the table
hi @Cocieto06 ,
Could you enrich your sample data to well reflect your case and with the corresponding expected result?
Hello
Table1
ID | Operation | Timestamp | Description ... |
1 | start | 11/11/2023 | |
1 | stop | 11/11/2023 | |
1 | start | 12/11/2023 | |
2 | start | 14/11/2023 | |
2 | stop | 15/11/2023 | |
3 | start | 20/11/2023 | |
3 | stop | 21/11/2023 | |
3 | start | 22/11/2023 | |
4 | start | 15/11/2023 | |
4 | stop | 16/11/2023 |
result
ID | operation | Time |
1 | Start | 11/11/2023 |
2 | start | 14/11/2023 |
3 | start | 20/11/2023 |
4 | start | 15/11/2023 |
COUNT total IDs |
Afterwards
Use count IDs in graph in y-axis
and use timestamps of only table 2 for X-axis (linked with date table to show by year/month)
the one from table two will all be seen in the 2023/11 column (block of 4 - since total is 4 units)
so i have these ID with that earliest event - this date is related to a data table with Year/month column. But I am not able to Visualise it because indeed units that start in oktober are seen in November and vice versa
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
10 | |
8 |