Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Error "A circular Dependency was detected"

Hello,

 

 I have the error "A circular Dependency was detected" while sorting the group by a calculated column.

The columns A(groups) and B(groups) is crated by grouping the other columns. 

Columns SortA and SortB are calculated columns : 

Ex: SortB = if(B(groups)= "0-4", 0, if(B(groups)= ">4-8", 1, if(B(groups)= ">8-12", 2, if(B(groups)= ">12-16", 3, if(B(groups)= ">16-20",4, if(B(groups)= ">20-24",5, if(B(groups)= ">24-32", 6, if(B(groups) = ">32-40", 7, if(B(groups) = ">40", 8)))))))))
 
 I have the error when sorting the B (groups) columns by the Sort B column. 
 
A (groups)Sort AB (groups)Sort B
>8-1630-40
>8-163>8-122
>8-163>4-81
>64-9680-40
>24-3250-40
>48-6470-40
>4-820-40
>16-2440-40
>2-410-40
>24-325>4-81
>48-647>4-81
0-200-40
>48-647>12-163
>96-12890-40
>24-325>8-122
>16-244>4-81
>32-486>12-163
>24-325>12-163
>32-4860-40
>32-486>8-122
>32-486>4-81
>96-1289>12-163
>48-647>20-245
>8-163>12-163
>2-41>4-81
>4-82>4-81
>192-25611>16-204
>192-25611>20-245
>25612>32-407
>24-325>20-245
>96-1289>8-122
>96-1289>4-81
>48-647>24-326
>16-244>12-163
>2-41>12-163
>25612>20-245
>256120-40
>128-19210>16-204
>128-192100-40
>48-647>8-122
>96-1289>20-245
>4-82>8-122
>8-163>20-245
>4-82>12-163
>48-647>16-204
>24-325>16-204
>96-1289>24-326
>16-244>8-122
>64-968>8-122
>32-486>20-245
>64-968>4-81
>64-968>20-245
>64-968>12-163
>96-1289>32-407
>16-244>16-204
>192-25611>12-163
>25612>12-163
>192-25611>24-326
>96-1289>16-204
>64-968>32-407
>128-19210>20-245
>32-486>24-326
>32-486>16-204
0-20>8-122
>128-19210>4-81
>192-25611>8-122
>64-968>16-204
>4-82>32-407
>128-19210>12-163
>2-41>8-122
>8-163>408
>25612>408
>64-968>408
>25612>8-122
>8-163>24-326
>192-25611>4-81
>24-325>24-326
0-20>4-81
>2-41>20-245
>64-968>24-326
>25612>4-81

 

Could you please advise? 

Thank you in advance. 

Tg

 

  • Anonymous , This how you should do to avoid this

     

    Col1 = [Col]

     

    Col Sort =  Switch(True() , <Conditions on col1> )

     

    Now mark Col Sort as the Sort column of Col1 and use that in visual

     

    How to Create Sort Column and Solve Related Errors:
    https://www.youtube.com/watch?v=KK1zu4MBb-c

2 Replies

  • Anonymous , This how you should do to avoid this

     

    Col1 = [Col]

     

    Col Sort =  Switch(True() , <Conditions on col1> )

     

    Now mark Col Sort as the Sort column of Col1 and use that in visual

     

    How to Create Sort Column and Solve Related Errors:
    https://www.youtube.com/watch?v=KK1zu4MBb-c

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thank you for your help .