Forum Discussion
Power BI Custom Visual with React - Issue with component.tsx and update()
- 1 year ago
Hi Andrelele,
The tutorial uses the single mapping (as defined in this step). This only ever returns a single value, as would be expected for something like a card.
If you want your visual to retrieve more data, you will need to choose the appropriate mapping type, define it in your capabilities and then extract and map using your code. Depending on you you want your visual to work, table might be the easiest one to start with in terms of understanding how data is sent and how you need to process it.
Good luck!
Daniel
Hi Andrelele,
The tutorial uses the single mapping (as defined in this step). This only ever returns a single value, as would be expected for something like a card.
If you want your visual to retrieve more data, you will need to choose the appropriate mapping type, define it in your capabilities and then extract and map using your code. Depending on you you want your visual to work, table might be the easiest one to start with in terms of understanding how data is sent and how you need to process it.
Good luck!
Daniel
- Andrelele1 year agoFrequent Visitor
Thank you very much!