Forum Discussion
Distinct/ Distinct count by key category
- 6 years ago
Anonymous , try like
Measure = CALCULATE(COUNTX(VALUES('Item'[Item]),('Item'[Item])),ALLEXCEPT('Item','Item'[shop] , Item'[FY] ))
Measure = CALCULATE(CONCATENATEX(VALUES('Table'[Item]),('Table'[Item])),ALLEXCEPT('Table','Item'[shop] , 'Item'[FY] ))
thank you for your help.π
I've trid but Ive got an error on following π
calculate(concatenatex(Table,distinct(Table[item])), allexcept(Table[shop]))
so i change to following.
calculate(concatenatex(Table,distinct(Table[item])), allexcept(Table,Table[shop]))
but when i add to the vidual it shows another error.
"can't display the vidual."
Anonymous , Try like this tested on my table
Measure = CALCULATE(CONCATENATEX(VALUES('Item'[Category]),('Item'[Category])),ALLEXCEPT('Item','Item'[Brand]))
Measure = CALCULATE(CONCATENATEX(VALUES('Table'[Item]),('Table'[Item])),ALLEXCEPT('Table','Item'[shop]))- Anonymous6 years agoNot applicable
Thank you !π
Would you please advice me how to add a key to distinct?
I would like to distinct shop and FY.
- amitchandak6 years agoSuper User
Anonymous , Try like
Measure = CALCULATE(COUNTX(VALUES('Item'[Category]),('Item'[Category])),ALLEXCEPT('Item','Item'[Brand]))
- Anonymous6 years agoNot applicable
Thank you for your helpπ
I would like to add a condition shop and FY in one measure.
I've triedlike this but did not work...
Measure = CALCULATE(COUNTX(VALUES('Item'[Item]),('Item'[Item])),ALLEXCEPT('Item','Item'[shop] &&'Item'[FY] ))
Measure = CALCULATE(CONCATENATEX(VALUES('Table'[Item]),('Table'[Item])),ALLEXCEPT('Table','Item'[shop] && 'Item'[FY] ))
- amitchandak6 years agoSuper User
Anonymous , try like
Measure = CALCULATE(COUNTX(VALUES('Item'[Item]),('Item'[Item])),ALLEXCEPT('Item','Item'[shop] , Item'[FY] ))
Measure = CALCULATE(CONCATENATEX(VALUES('Table'[Item]),('Table'[Item])),ALLEXCEPT('Table','Item'[shop] , 'Item'[FY] ))
- Anonymous6 years agoNot applicable