Forum Discussion
Mchen95
Jun 17, 2021Copper Contributor
Pivot Table Count Unique or Similar Values
Hi, I was wondering if there’s a way to create a pivot table that counts unique values. I have tried adding to data model and selecting distinct count. This works, but then I run into a problem where ...
SergeiBaklan
Jan 10, 2022Diamond Contributor
If something like this
creating PivotTable add data to data model and create measure
Count Names:=IF( HASONEVALUE(Table1[Name]), "", COUNTROWS( Table1 ) )
Use it in PivotTable instead of default aggregation.
ElizabethMabrey
Jan 10, 2022Copper Contributor
Sergei, thank you. I am a newbie in pivot table. I figured out to enable Power pivot and created the new measure created; but have difficulty in locating how to insert the measure field into the pivot table. I have looked up from ms excel forum, and https://www.howtoexcel.org/summarizing-text/, but could not find the proper way to insert the newly created measure. Please advice.
- SergeiBaklanJan 11, 2022Diamond Contributor
- ElizabethMabreyJan 11, 2022Copper Contributor
SergeiBaklan that's what I thought. Since it did not show up in the pivot table, I suspect I created it under a wrong table. I'll see if I can figure out how to recreate under the right pivot table.
- SergeiBaklanJan 11, 2022Diamond Contributor