Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello,
I have a table that already have an index column. I want to keep it this way. How can i do it?
(I want it to be like like on padas .
df = pd.read_csv("file.csv, index_col= ["index"])
)
Example table:
| Index | A | B | C | D | E |
| 1 | 1231 | 1241 | xd | asdasd | a |
| 2 | 2312 | 1241 | xd | sadasd | a |
| 3 | 41241 | 1241 | xd | asdsa | a |
Hope anyone could give me a hand thanks!!
Solved! Go to Solution.
hello you forgot to add calculate in the start before the (MAX
Measure = CALCULATE( MAX(Promedios[PS1]) , FILTER(Promedios, [Índice] = MAX(Promedios[Índice])))Some background about what i'm tryng to do.
I'm trying to get the last value from a colum using this DAX
LastPS1 = LASTNONBLANK(Promedios[PS1], Promedios[PS1])The problem is when i use this code i got the MAX value instead the LAST value. I think it is because power BI its not getting the index i set
Last Value =
Calculate ( MAX(Promedios[PS1]) , FILTER(Table, [index] = max[index]))
this should return your latest value
here is a small sample
I'm having an issue with the code:
LastPS1 = ( MAX(Promedios[PS1]) , FILTER(Promedios, [Índice] = MAX(Promedios[Índice])))The error is The '( )' operator or expression is not supported in this context.
Thanks for your time @eliasayyy !
hello you forgot to add calculate in the start before the (MAX
Measure = CALCULATE( MAX(Promedios[PS1]) , FILTER(Promedios, [Índice] = MAX(Promedios[Índice])))go to powerquery
press on add columns in the ribbons
add index column
This way i create a new column. I need to use the original named index
when you import your table it should get imported too can you please explain more
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |