Forum Discussion
Ynew
Helper I
8 years agoA slicer for a pivot table
Hello All, I need help with coming up with a solution for my problem as below. To make my question easy to understand I define a simple version of my real data. I have three columns as below: Cu...
- 8 years ago
Hi Ynew
It seems your version of Excel does not support DAX variables
Please try this instead
= IF ( CALCULATE ( DISTINCTCOUNT ( TableName[Products] ), ALLEXCEPT ( TableName, TableName[Customer name] ) ) > 1, "Multiple Type", "Single Type" ) - 8 years ago
Zubair_Muhammad
Community Champion
8 years agoHi Ynew
How about Adding a calculated column " Customer Type" then using this as a slicer
Customer Type =
VAR DistinctCountofProducts =
CALCULATE (
DISTINCTCOUNT ( TableName[Products] ),
ALLEXCEPT ( TableName, TableName[Customer name] )
)
RETURN
IF ( DistinctCountofProducts > 1, "Multiple Type", "Single Type" )
Zubair_Muhammad
Community Champion
8 years ago