Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a Top_20 table that has [Geographies] as a column listed multiple times because the table also contains Product UPCs and associated sales with them.
I need to create an index on the [Geographies] column so that the index stays the same until a new geography shows in the table. How can I achieve this??
Solved! Go to Solution.
Hi @glmoon5 ,
Thanks for reaching out to Microsoft fabric Community Forum.
Based on the sample data as you provided as per the query :
Expected output :
Reference : Add an index column - Power Query | Microsoft Learn
If this post was helpful, please consider marking Accept as solution to assist other members in finding it more easily.
If you continue to face issues, feel free to reach out to us for further assistance!
do you want to create a calcuated column or a measure? could you pls provide some sample data and expected output?
Proud to be a Super User!
then could you pls proivde some sample data and expected output? We don't need top 20, maybe just top 3 or top 5 sample data
Proud to be a Super User!
I don't have the data handy.....I was thinking this was pretty straight forward for someone how knows more about PBI that me?
It's difficult to provide a solution without a sample data and the expected result from that. It's like trying to hit a target without properly aiming at it.
How about this:
| Geography | Brand | Dollar Sales |
| GEO 1 | BRAND 1 | $16,789,338 |
| GEO 1 | BRAND 2 | $9,911,549 |
| GEO 1 | BRAND 2 | $5,022,607 |
| GEO 1 | BRAND 4 | $5,694,625 |
| GEO 1 | BRAND 5 | $19,823,097 |
| GEO 1 | BRAND 6 | $5,084,486 |
| GEO 2 | BRAND 1 | $60,139,860 |
| GEO 2 | BRAND 2 | $44,031,651 |
| GEO 2 | BRAND 2 | $31,547,579 |
| GEO 2 | BRAND 4 | $5,544,625 |
| GEO 2 | BRAND 5 | $22,015,826 |
| GEO 2 | BRAND 6 | $21,490,223 |
What result exactly do you expect from that sample data?
I have a Top_20 table that has [Geographies] as a column listed multiple times because the table also contains Product UPCs and associated sales with them.
I need to create an index on the [Geographies] column so that the index stays the same until a new geography shows in the table. How can I achieve this??
Hi @glmoon5 ,
Thanks for reaching out to Microsoft fabric Community Forum.
Based on the sample data as you provided as per the query :
Expected output :
Reference : Add an index column - Power Query | Microsoft Learn
If this post was helpful, please consider marking Accept as solution to assist other members in finding it more easily.
If you continue to face issues, feel free to reach out to us for further assistance!
Hi @glmoon5 ,
We haven’t heard back from you regarding our previous response and wanted to check if your issue has been resolved.
If it has, please consider clicking “Accept Answer” and “Yes” if you found the response helpful.
If you still have any questions or need further assistance, feel free to let us know — we're happy to help!
Thank you!
Hi @glmoon5 ,
If our response addressed by the community member for your query, please mark it as Accept Answer and click Yes if you found it helpful.
Should you have any further questions, feel free to reach out.
Thank you for being a part of the Microsoft Fabric Community Forum!
Hi @glmoon5 ,
We haven’t heard back from you regarding our previous response and wanted to check if your issue has been resolved.
If it has, please consider clicking “Accept Answer” and “Yes” if you found the response helpful.
If you still have any questions or need further assistance, feel free to let us know — we're happy to help!
Thank you!
Hi,
Based on the table that you have shared, show the expected result very clearly.
I have a Top_20 table that has [Geographies] as a column listed multiple times because the table also contains Product UPCs and associated sales with them.
I need to create an index on the [Geographies] column so that the index stays the same until a new geography shows in the table. How can I achieve this??
Show the expected result very clearly. Also, do you want a measure or a calculated column?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 35 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 136 | |
| 96 | |
| 77 | |
| 67 | |
| 65 |