Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
ssk_1984
Helper I
Helper I

adding customer column to count the values repetition in ascending order

Hi 

 

Please help me to the add the count coulm based on the Final ID, How many time the final repetatly appearing with the incresing trend value

 

For Example here Row 1 to 3, Final ID 12 appeared three times, then values form 1 to 3 added in that column

also for the same Final ID appearing from the row number 6 to 9 , again the values to shown from 1 to 4 as per the repetation

 

Final IDSLA ResultReport DateCount
12Not Met01-10-20211
12Not Met01-11-20212
12Not Met01-12-20213
34Met01-12-20211
12Not Met01-07-20221
12Not Met01-08-20222
12Not Met01-09-20223
12Not Met01-10-20224
23Met01-07-20221
23Not Met01-08-20222
12Not Met01-07-20221
12Not Met01-08-20222
12Not Met01-10-20221
12Not Met01-11-20222
1 ACCEPTED SOLUTION

Hi @ssk_1984 ,

 

Are you looking for the output like this below, 

 

NikhilChenna_0-1669361737142.png

so you can use the below calculated dax column of Rank usign Rankx,

 

Rank = RANKX(
FILTER(
'Table (6)',
'Table (6)'[Final ID] = EARLIER('Table (6)'[Final ID])),
'Table (6)'[Report Date], ,ASC,Dense)
 
I tried this myself , it worked. 
 
Regards,
Nikhil Chenna
 
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

View solution in original post

5 REPLIES 5
ssk_1984
Helper I
Helper I

I have one more Query, If any of date is skipped in between the Range of Month, It should be recalculated from 1....Here July, Aug then It is again starts from the month Oct, Nov & Dec....Sep is missing...

So 

Final IDSLA ResultReport DateCount
12Not Met01-10-20211
12Not Met01-11-20212
12Not Met01-12-20213
12Not Met01-07-20221
12Not Met01-08-20222
12Not Met01-09-20223
12Not Met01-10-20224
12Not Met01-11-20225
ssk_1984
Helper I
Helper I

Thank you very much, it works

NikhilChenna
Skilled Sharer
Skilled Sharer

Hi @ssk_1984 , I think its a simple solution. 

 

You just have to created a new calculated column of Rank using the Rankeq function in Power BI based on the Final ID.

 

Regards,

Nikhil Chenna

 

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

Count the number of repitation by group Final ID, Rank will gives me wrong answer

 

Any other suggestion pls 

Hi @ssk_1984 ,

 

Are you looking for the output like this below, 

 

NikhilChenna_0-1669361737142.png

so you can use the below calculated dax column of Rank usign Rankx,

 

Rank = RANKX(
FILTER(
'Table (6)',
'Table (6)'[Final ID] = EARLIER('Table (6)'[Final ID])),
'Table (6)'[Report Date], ,ASC,Dense)
 
I tried this myself , it worked. 
 
Regards,
Nikhil Chenna
 
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.