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! Learn more

Reply
olsen9
Frequent Visitor

Need help creating a new Counter in Table

Whenever the report is refreshed and updated, was looking to see a new column added called ID that starts with 1 then each row is 2, 3, 4, 5 etc

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @olsen9 ,

You can try the following measure to show the dynamic index.

RowNum = 
CALCULATE (
    COUNT ( 'Table'[ID] ),
    FILTER (
        ALLSELECTED ( 'Table' ),
        'Table'[ID]  <= MAX ( 'Table'[ID]  )
    )
)

 vpollymsft_0-1673839675326.gif

I have also found a similar post, please refer to it to see if it helps you.

Solved: How can I create a simple index column with dax. - Microsoft Power BI Community

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi  @olsen9 ,

You can try the following measure to show the dynamic index.

RowNum = 
CALCULATE (
    COUNT ( 'Table'[ID] ),
    FILTER (
        ALLSELECTED ( 'Table' ),
        'Table'[ID]  <= MAX ( 'Table'[ID]  )
    )
)

 vpollymsft_0-1673839675326.gif

I have also found a similar post, please refer to it to see if it helps you.

Solved: How can I create a simple index column with dax. - Microsoft Power BI Community

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

selimovd
Super User
Super User

Hey @olsen9 ,

 

you can call a stored procedure during the import that is incrementing the value or adding one in a table.

This table you can then return as a result of the stored procedure.

 

To make your life easier, I personally would just return the last refresh date/time. But the approach I just mentioned should give you the result you want.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

Thanks, I probably should have said I'm using data in SP online.  No access to SQL

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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