Forum Discussion
Anonymous
7 years agoNot applicable
not count unpivot extra rows
Hello, I need to know how to not count the extra rows power bi creates when I unpivot multiple columns? Im working on survey data so all the questions I am unpivoting to get the responses fo...
- 7 years ago
Hi Anonymous
I can reproduce your problem
T
To solve this, insert a step before "Unpivot columns"
add index columns from 1
then create a measure to calculate the count of regions
Measure = CALCULATE(DISTINCTCOUNT(Sheet5[Index]),ALLEXCEPT(Sheet5,Sheet5[region]))
Best Regards
Maggie
v-juanli-msft
7 years agoCommunity Support
Hi Anonymous
I can reproduce your problem
T
To solve this, insert a step before "Unpivot columns"
add index columns from 1
then create a measure to calculate the count of regions
Measure = CALCULATE(DISTINCTCOUNT(Sheet5[Index]),ALLEXCEPT(Sheet5,Sheet5[region]))
Best Regards
Maggie
- Anonymous7 years agoNot applicable
- Rose_T3 years agoFrequent Visitor
Thank you so much for providing this solution. Works perfectly.