Forum Discussion

adriancho_BI's avatar
adriancho_BI
Regular Visitor
2 years ago
Solved

Create New Column referencing other table's column

Hello! Please your hel in figuring out how to Create a New Column referencing other table's column In a single record table, I want to count, how many times repets a certain column per this single r...
  • adriancho_BI's avatar
    adriancho_BI
    2 years ago

    Thank  you for the response, but I already have the count, what I actually need is to create the group or category using something like SWITCH() OR IF() but when I visualize it, it only shows me the last category ">=3". I already checked the data format as WHOLE NUMBER with zero decimals

    e.g.:

    Column =
    IF( MAX('dimbakery'[count]) = 0, "0",
    IF(MAX('dimbakery'[count]) = 1 , "1",
    IF(MAX('dimbakery'[count]) =2 , "2" ,
    IF(MAX('dimbakery'[count]) >= 3 ,">=3"))))
    or 
    Column =
    SWITCH (
    MAX('dimbakery'[count]),
    0, "0",
    1, "1",
    2, "2",
    ">=3")