I have a problem with Power BI not displaying values correctly when they are calculated as percentage of grand total.
The dataset I am working with is a survey, where 2300 people have responded on 10 question with "Yes"/"No", or, in some cases, didn't even have the question. There were 10 questions, so I unpivoted my table, with one column serving as key (where questions are stored), and the other serving as value (where answers are stored). There is also an ID column and 4 other columns that store "demographic-like" information and they are used as slicers.
My first chart shows absolute values of all the people that said "Yes" (this one works correctly) and it is calculated as "Count (Distinct)" IDs in the unpivoted table.
The other chart (the one below) should show the same thing, but in percentages. The chart is essentially the same as the first one, the only difference is that "Value" is displayed as "Percentage of grand total". The problematic behaviour is presented in the picture below:
As you can see on the first chart, out of 2300 people, around 600 (616 to be exact) have said "Yes" to wearing sneakers. However, in the second chart, the same percentage is calculated as 47.24% which is most certainly wrong (26.78% is the correct percentage).
From what I understand, there should be a measure that is used to calculate these percentages correctly?
How do I fix this?
P.S. If it is required, I can share both the dataset and .pbix file.