Forum Discussion

matthiasnielsen's avatar
matthiasnielsen
Advocate I
8 years ago
Solved

Getting columns in table ordered (or grouped) by dataRoles specified in capabilities.json

Hi,   In a custom visual I am developing (using a table data view mapping) I am trying derive which data fields are put into which data roles in the interface. Does anyone have suggestions as to do...
  • v-viig's avatar
    8 years ago

    There's no better way to parse table mapping. As you mentioned values can be parsed using dataView.table.columns and roles field.

    Such implementaiton will allow to match column index and value index.

     

    The group field allows to group values by particular column.

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]