Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have a TableA where i have the Job Detail and another TableB holds the statuses of a job. in Power BI, i need to show the Job Details and each statuses as columns with the value as Max(StatusDateTime) on the same row as job details. Can somebody tell me the best way to acheive this result please? e.g. scenario:
TableA
JobNo | JobName | CreatedDate |
S1234 | Test1 | 01/01/2020 |
Table B
JobNo | StatusDateTime | Status |
S1234 | 02/02/2020 03:35:23 | DR |
S1234 | 02/02/2020 03:55:23 | DR |
S1234 | 02/02/2020 04:38:23 | DR |
S1234 | 02/02/2020 15:35:23 | VC |
S1234 | 02/02/2020 15:40:23 | VC |
S1234 | 02/02/2020 16:33:23 | PC |
S1234 | 02/02/2020 16:35:23 | PC |
ExpectedResultTable
JobNo | JobName | CreatedDate | DR | VC | PC |
S1234 | Test1 | 01/01/2020 | 02/02/2020 04:38:23 | 02/02/2020 15:40:23 | 02/02/2020 16:35:23 |
Thanks in Advance.
Hi @Anonymous
Please see the attached file with a solution, that uses current structure and matrix visual.
This is my scenario. So i retreive TableA and TableB from the database and then create a new table using dax called JobStatus.
Now if i want to Pivot JobStatus table i can't do it because it does not appear in Power Query Editor. Only two tables appears there which i imported from the database. JobStatus table does not appear.
I hope, I have managed to explain well.
Thanks.
Hi @Anonymous
You can pivot your Table B with the setup as below.
Later just Merge the tables on JobNo
Also, see the attached for the ref.
Hi, Thanks for your reply. Actualy Table2 is made using DAX so i cannot use Pivot functionality of Power query editor. Any other way of doing it?
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 |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
9 | |
6 | |
6 |