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
Hi!
I have this calculate table:
I want to create another column that index the values in tthe specific order as in picture. This column is needed for ordering some visualizations.
I tried various ways (LOOKUPVALUE, concatened IFs) but i get always an error about "circolar dipendence".
Any suggestions?
Thanks,
Solved! Go to Solution.
@ryan_mayu Thanks for your contribution on this thread.
Hi @SebaSpotti ,
You can update the formula of calculated table [Dim_Seniority] as below:
Dim_Seniority =
ADDCOLUMNS (
DISTINCT ( HC[HC Seniority Cluster] ),
"Index",
SWITCH (
[HC Seniority Cluster],
"< 1 year", 1,
"1 year to 3 years", 2,
"3 year to 5 years", 3,
"5 year to 10 years", 4,
">= 10 years", 5,
BLANK ()
)
)
Best Regards
@ryan_mayu Thanks for your contribution on this thread.
Hi @SebaSpotti ,
You can update the formula of calculated table [Dim_Seniority] as below:
Dim_Seniority =
ADDCOLUMNS (
DISTINCT ( HC[HC Seniority Cluster] ),
"Index",
SWITCH (
[HC Seniority Cluster],
"< 1 year", 1,
"1 year to 3 years", 2,
"3 year to 5 years", 3,
"5 year to 10 years", 4,
">= 10 years", 5,
BLANK ()
)
)
Best Regards
have you tried to use SWITCH
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!