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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

dax for index

How we can write DAX to get Index coloumn in calculate table without using Generate series and Rank Functions? can any one help me

3 REPLIES 3
Anonymous
Not applicable

Hi  @Anonymous ,

If you have less data, you can customize and manually enter Index

In Power query, select Add Column – Column From Examples – From All Columns.

vyangliumsft_0-1636964589659.png

Result:

vyangliumsft_1-1636964589661.png

 

After research, only Generate series and Rank Functions are used to create index functions, but no others are found. Can you tell me why these two functions are not used?

 

Best Regards,

Liu Yang

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

VahidDM
Super User
Super User

Hi @Anonymous 

 

As @amitchandak mentioned, you can use PQ, that is the best and easiest way.

But if you need DAX, can you share more details re your request? Do you want a single column table with numbers for instance from 1 to 100?

 


Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

amitchandak
Super User
Super User

@Anonymous , I doubt Rank and generate series are the options.

You have index column option power query, I doubt something similar in DAX

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.