cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
sshroffm Frequent Visitor
Frequent Visitor

Counting the sequence as a calculated column in DAX

Hi there!

 

I'm pretty new here.

 

I'm trying to generate a series by using a calculated column based on job activity. Here's an example:

 

Job Activity Calculated column
A1
A1
A1
A1
B1
B1
B1
A2
A2
B2
B2
B2
C1
C1
C1

 

All activities occurs based on time and date. I want to group them based on earliest of occurence by date. Later, using this, I'll be having further calculated columns.

 

Thanks in advance and much appreciated!

 

Regards.

S

2 REPLIES 2
Community Support Team
Community Support Team

Re: Counting the sequence as a calculated column in DAX

Hi @sshroffm ,

 

I saw your sample table. Is it the result you want? As long as it appears coherently, is it in the same group?

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
sshroffm Frequent Visitor
Frequent Visitor

Re: Counting the sequence as a calculated column in DAX

Hi @v-eachen-msft 

 

Yes, The Calculated column shown in the table is the result I want.

Not the coherence! I want to assign all the group of A's that appear the first time as 1 and the second group of A's as 2. Similarly with B's or C's. If the group appears for the first time, then assign it 1. If it's the second time in the list, assign it 2 and so on.

 

Hope I cleared the confusion. Please get back in case of further questions. Your help is much appreciated!

 

Thank You.

Helpful resources

Announcements
Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors