Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi Everyone,
My dataset looks like:
| Date | Product |
| 1/1/2022 | Table |
| 1/1/2022 | Chair |
| 1/1/2022 | Seat |
| 1/1/2022 | Monitor |
| 1/1/2022 | Monitor |
| 1/1/2022 | PC |
| 1/1/2022 | Laptop |
| 1/2/2022 | Table |
| 1/2/2022 | Chair |
| 1/2/2022 | Seat |
| 1/2/2022 | Monitor |
| 1/2/2022 | Laptop |
| 1/2/2022 | Laptop |
| 1/2/2022 | Table |
| 1/2/2022 | Chair |
I would like to add a 3rd column where occurence of product is counted. The output would look like:
| Date | Product | Occurence |
| 1/1/2022 | Table | 1st |
| 1/1/2022 | Chair | 1st |
| 1/1/2022 | Seat | 1st |
| 1/1/2022 | Monitor | 1st |
| 1/1/2022 | Monitor | 2nd |
| 1/1/2022 | PC | 1st |
| 1/1/2022 | Laptop | 2nd |
| 1/2/2022 | Table | 2nd |
| 1/2/2022 | Chair | 2nd |
| 1/2/2022 | Seat | 2nd |
| 1/2/2022 | Monitor | 2nd |
| 1/2/2022 | Laptop | 3rd |
| 1/2/2022 | Laptop | 4th |
| 1/2/2022 | Table | 3rd |
| 1/2/2022 | Chair | 3rd |
How do I achieve this in dax?
Thanks!
Solved! Go to Solution.
@adityamalik1234 , You can create a Rank Column
A new column = rankx(filter(Table, [Product] =earlier([Product]) ), [Date],,asc,dense)
You can append text in a new column as per need
@adityamalik1234 , You can create a Rank Column
A new column = rankx(filter(Table, [Product] =earlier([Product]) ), [Date],,asc,dense)
You can append text in a new column as per need
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 28 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 49 | |
| 44 | |
| 42 | |
| 39 | |
| 32 |