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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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