Forum Discussion
Fix duplicate data
- 2 years ago
Hi Anonymous
lbendlin's answer is correct. You must include a data role in your capabilities that encourages users to add a unique identifier row to the visual dataset to make Power BI project rather than aggregate. Power BI will always aggregate to the highest possible level based on unique values in the dataset (for columns). The Violin Plot custom visual needs this, and I wrote a blog post explaining the concept with some visual aids, which should help clarify the approach you will need to take.
Regards,
Daniel
Hello, I want to create a table in cusom visuals and display my information. I choose dataViewMappings as table and dataRoles with kind as row and value. My data has 9 rows and there is overlap, data sales duplicated in 10$ and 11$, When I drag brand into rows and Sales into value, the data returned to me is 7 rows instead of 9. The 2 duplicate values 10$ and 11$ have disappeared. I want to ask if there is any way I can get all data without removing duplicates
To prevent automatic aggregation you need to add a unique field to your visual, like a row index.
- Anonymous2 years agoNot applicable
What you mean is adding a unique field to data or my visuals, is there any way to set the data return to not automatically delete duplicate values? I want when I drag brand into rows and Sales into value, the data will be displayed in full 9 rows like in excels data, is there any way?
- dm-p2 years agoSuper User
Hi Anonymous
lbendlin's answer is correct. You must include a data role in your capabilities that encourages users to add a unique identifier row to the visual dataset to make Power BI project rather than aggregate. Power BI will always aggregate to the highest possible level based on unique values in the dataset (for columns). The Violin Plot custom visual needs this, and I wrote a blog post explaining the concept with some visual aids, which should help clarify the approach you will need to take.
Regards,
Daniel