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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ssk_1984
Frequent Visitor

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
Frequent Visitor

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
Frequent Visitor

Thank you very much, it works

NikhilChenna
Continued Contributor
Continued Contributor

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors