Forum Discussion
vibhoryadav23
Helper II
4 years agoHow to crosstab a table in DAX?
Hi, I am trying to transpose/crosstab/pivot a table directly in Dax. Is it possible? Input Table User Product Status A Prod 1 Active A Prod 2 Inactive B Prod 1 Others B Pr...
- 4 years ago
Use:
New Table = ADDCOLUMNS ( VALUES ( 'Table'[User] ), "Prod1", CALCULATE ( MAX ( 'Table'[Status] ), 'Table'[Product] = "Prod 1" ), "Prod2", CALCULATE ( MAX ( 'Table'[Status] ), 'Table'[Product] = "Prod 2" ) )
amitchandak
Super User
4 years agovibhoryadav23 , Use matrix visual, User on Row, product on column and max of status as value