Forum Discussion

Rachel_123's avatar
Rachel_123
Helper I
3 years ago
Solved

Key Column can't be defined in calculated tables?

Hi, I have a calculated table with a unique column that I am trying to assign as a key column in the model view, PBI doesn't give me the option to select a column as key column for any calculated ta...
  • sevenhills's avatar
    3 years ago

    By default , it is not possible.

     

    Alternative way exists:

    a) There is one more way, that you can launch Tabular Editor "TE" and change.

         TE, an external tool you have to install. https://tabulareditor.com/downloads

          Download the free version. You dont need to buy the latest version for this.

     

    b) Once you have Tabular Editor installed, open .pbix file, launch tabular editor.

     

    c) Navigate on the left to the column of the table.

    Say, Delete Summary table, Source.Name is the key column you want to configure.

     

    d) Properties window will show up.

    Set the  "Key"  as "True"

     

    Save and close the TE. You are good to go!

     

    e) In the model view, you will see the key is set.

     

    FYI, By doing this, you can see in the diagram pane and rows selection as key column. But not in the properties window. May be intentional feature by Microsoft team or a bug 🙂 

     

     

     

     

    Hope this helps!

     

    Note: PBI is nothing but SSAS tabular enhanced version.