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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Need to ,create Serial number based on selected values in slicer

Hi Team,

I need to create a dynamic serial number based on Selected values in slicer, 
In slicer im using employee id(text) and RAP is a integervalue. Please help me on this.
Here is the measure im using.
S.no =

RANKX(
    ALLSELECTED('Final Table'[Automation_ID]),  -- Rank within the selected Automation_IDs only
    CALCULATE([RPA Effort(Hrs).]),  -- Sum of SalesAmount for each Automation_ID
    ,  -- No tie-breaking expression (defaults to current context)
    DESC,  -- Order ranking in descending
    DENSE  -- Dense ranking
)


1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Anonymous 

Please provide a workable sample data and your expected result from that. It is hard to figure out what you want to achieve from the description alone.  

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi Ashish
The above measure is not working, the report 

BanothPraveen_1-1731394765930.png

 

I do not know the mistake that you are committing.  It works fine in my file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ritaf1983
Super User
Super User

Hi @Anonymous 

Please provide a workable sample data and your expected result from that. It is hard to figure out what you want to achieve from the description alone.  

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

BanothPraveen_0-1731131758755.png

There are many transections under each Automation id, when I filter by Automation id, I want see a uniue ID for each transection,with the indeex rewsting to 1,2,3,and so on.

 

Hi,

I have solved a similar problem in the attached file.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors