Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I need to crosstab/transpose data from one table to create a new table as shown in example below.
Original Table:
User | Week | Status |
A1 | Week1 | Active |
A1 | Week2 | Inactive |
A1 | Week3 | Deleted |
A2 | Week1 | Active |
A2 | Week2 | Active |
A2 | Week3 | Deleted |
A3 | Week1 | Active |
A3 | Week2 | Active |
A3 | Week3 | Active |
A4 | Week3 | Idle |
A5 | Week2 | Active |
A5 | Week3 | Active |
New Table/Changed format/Desired output:
User | Week1 | Week2 | Week3 |
A1 | Active | Inactive | Deleted |
A2 | Active | Active | Deleted |
A3 | Active | Active | Active |
A4 | Idle | ||
A5 | Active | Active |
Can anyone help me with the same? Thanks in advance.
Solved! Go to Solution.
In matrix viusal , Week on column , Max of Status measure as value
Or if need a new table, Unpivot in Power Query- Take max of status -> If it does not give Option, After table is created you will see List.Count in script(formula), Make that List.Max
https://radacad.com/pivot-and-unpivot-with-power-bi
In matrix viusal , Week on column , Max of Status measure as value
Or if need a new table, Unpivot in Power Query- Take max of status -> If it does not give Option, After table is created you will see List.Count in script(formula), Make that List.Max
Hi @amitchandak ,
Thanks for your response. The second option works but it changes my current data. Is it possible to create a new table instead of changing the existing table?
@vibhoryadav23 , Right click on table in power query and duplicate. Or Copy paste , then unpivot
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |