Forum Discussion
Display unique items that appeared each year
- 7 years ago
Anonymous
Try this revision
Distinct Count With Totals = IF ( HASONEFILTER ( tblData[Item Appearance Date (Year) 1] ) && HASONEFILTER ( tblData[CHAR DESCRIPTION] ) && HASONEFILTER ( [CHAR VALUE] ), [DistinctCount], SUMX ( SUMMARIZE ( tblData, [Item Appearance Date (Year) 1], [CHAR DESCRIPTION], [CHAR VALUE] ), [DistinctCount] ) )
Thanks Dale ( v-jiascu-msft ), :smileyhappy:
I am working in Excel 2016 Powerpivot and not using Power BI. Instead of concatenating, cant we have the result as shown above, so that i can see which char values were Emerging in a particular year and which were trending from past years? Also, the length due to concatenation is exceeding in some columns and so unpleasant to read.
Also, some of these Unique Char Values seem to be present in previous years also. They should be unique across entire daterange, so that in each year we get to see which are the unique chars that have entered market.
| Item Appearance Date (Year) | CHAR DESC | UniqueChars | DistinctCount |
| 2018 | LSDM | XXXX | HHHH | 2 |
| 2017 | LSDM | XXXX | SSSS | 2 |
| 2016 | LSDM | XXXX | 1 |
| Grand Total | XXXX | HHHH | SSSS | 3 |
e.g. XXXX has appeared in 2016, 2017, 2018. Hope you are getting my point.
Hi Zubair_Muhammad, i have seen some of your replies. Can you or any DAX Experts please help me with a solution for my problems?