Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello.
I want to add new column.
The values in the column based rows.
for exemple from R2 to R10 column values are "A" ,from R11 to R20,Values in column are "B" and so on
Solved! Go to Solution.
Hi @mohsin-raza
You can utilize Index column, one way to do, if you have a lot of values to add according to the Index, you can utilize a custom function like switch
[a=Number.RoundTowardZero(([Index]-1)/10),
b=if [Index]=1 then null
else if a =0 then "A"
else if a=1 then "B"
else "Unknown"][b]
Hi @mohsin-raza
You can utilize Index column, one way to do, if you have a lot of values to add according to the Index, you can utilize a custom function like switch
[a=Number.RoundTowardZero(([Index]-1)/10),
b=if [Index]=1 then null
else if a =0 then "A"
else if a=1 then "B"
else "Unknown"][b]
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.