This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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 | Prod 2 | Active |
| C | Prod 1 | Idle |
| D | Prod 2 | Active |
Output table
| User | Prod 1 | Prod 2 |
| A | Active | Inactive |
| B | Others | Active |
| C | Idle | |
| D | Active |
Thanks in advance!
Solved! Go to Solution.
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" )
)
Proud to be a Super User!
Paul on Linkedin.
@vibhoryadav23 , Use matrix visual, User on Row, product on column and max of status as value
@amitchandak Thanks for the suggestion and I have already done that but I need a ned table with this format as well.
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" )
)
Proud to be a Super User!
Paul on Linkedin.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 38 | |
| 29 | |
| 28 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 66 | |
| 36 | |
| 30 | |
| 25 | |
| 24 |