The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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!
User | Count |
---|---|
58 | |
56 | |
53 | |
49 | |
32 |
User | Count |
---|---|
172 | |
89 | |
70 | |
46 | |
45 |