Forum Discussion

RichardL's avatar
RichardL
Microsoft Employee
9 years ago
Solved

How to retrieve table data from Power BI desktop into custom visual?

Hello, I've created a table with two columns named "X" and "Y" in Power BI Desktop.  Each column contains integers.  I also created a custom visual that I can import into Power BI Desktop.  Is there a way for me to read data from the X and Y columns into my custom visual using TypeScript only or do I need some sort of external library to do so?  Thanks.

  • I figured it out.  Had to modify capabilities.json and use DataViewMappings in my visual.ts file.

8 Replies

  • RichardL's avatar
    RichardL
    Microsoft Employee

    I figured it out.  Had to modify capabilities.json and use DataViewMappings in my visual.ts file.

    • v-chuncz-msft's avatar
      v-chuncz-msft
      Community Support

      RichardL,

       

      Glad to hear that you've solved this problem and thank you for sharing the solution. You could mark it as answer so that other community members might gain benefits.

    • mpo's avatar
      mpo
      Helper II

      RichardL

      Could you post what you ended up with, by any chance? I think I have a similar problem and don't know how to access table data mapping values in visual.ts.