Forum Discussion
Adding More than One Type of Data View Mapping to Developer Visual
Hi Anonymous ,
Thank you for your prompt response. Could you elaborate on what you mean by "using the desired composition of the visualization as a persona?
Is it possible to have more than one type of dataview mapping? If so, I think that if I could implement that correctly, it would solve my problem. In the screenshot below, I've shared what I'm trying to achieve: the "Measure Card" card display is in the top left corner of the screenshot (reading 118.73M), and the "Variance Indicator" card display is in the top right corner (reading 101.83M % var vs fcst). Below is the line area chart with the three separate data series (Actuals, Target, Forecast). In total, I have 6 data wells for the developer visual: Measure Card, Variance Indicator, Date, Actuals, Target, and Forecast.
Here's a screenshot of my dataRoles:
Here's a screenshot of my current dataViewMappings:
The problem I'm encountering is that so far, having everything grouped by "Date" as a categorical mapping is the only way I've gotten anything in the visual to run; otherwise, when I try to assign the Measure Card and Variance Indicator a "single" dataViewMapping, only the constructor is called upon startup but my public update method doesn't run, resulting in nothing being generated in the visual. However, the problem with grouping by date is that I think that the dataView changes when date data is entered, resulting in an incorrect summation/average/etc. for the Measure Card and Variance Indicator displays.
Do you know how I can troubleshoot this?
- Anonymous2 years agoNot applicable
Hi, Anonymous
Has the problem been solved? If it does, share your solution and accept it as a solution that will help other community members who have the same problem as you.
Thanks for your detailed explanation, I am more than willing to help you out.
Here's what we've found for your needs, we hope you'll find it helpful:
PowerBI-visuals/Capabilities/DataViewMappings.md at master · PowerBi-Projects/PowerBI-visuals · GitHub
However, the problem you are experiencing is not what we are good at.For the issue you mentioned, it would be more advisable to post your question in Custom Visuals Development community to get professional support in time.We've now moved your question to that forum.Here is the link to the forum you need:
Custom Visuals Development Discussion - Microsoft Fabric Community
If you need any help from my side, I will do my best to support you.
Best Regards,Leroy Lu