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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Tableau to power BI migration

Hi,
I am currently working on migrating the tableau report to power bi.

 

In tableau , they have used index() function for creating index in visual dynamically.

the index will change according to the column we have added in the visual.

How to achieve the same in Power BI?  I am not able to get it by creating index column and using measures as well.. Any help or leads is really appreciate..
here is the sample data :

pm_97_0-1716980496571.pngpm_97_1-1716980511727.png


Thanks in advance

2 REPLIES 2
Anonymous
Not applicable

Hi rajendraongole1 ,

I tried your way. But, it didn't help.
The index should work in dynamic way.

For example, I have table containing Country, Product and sales columns in it. If it add country and index column, it should work like as mentioned below.

countryindex
us1
brazil2
canada3


and if add product column to the above table, it should work like..

countryproductsindex
usmobile1
 laptop2
brazilchair1
 desktop2
canadatransport1
 calculator2



I hope I can make you understand my question better now. Please let me know if any further data required.

Thanks

 

 

 

rajendraongole1
Super User
Super User

Hi @Anonymous - In Power BI, you can create a dynamic index similar to Tableau's INDEX() function by using DAX (Data Analysis Expressions). This index will adjust according to the columns you add in your visualizations.

 

using calculated column 

Index = RANKX(ALL(Sales), Sales[SalesAmount], , ASC, Dense)

 

rajendraongole1_1-1716985368403.png

 

you can create dynamic index() using dax or in power query editor also we have a functionality to add index column .

 

rajendraongole1_0-1716985250861.png

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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