How Do I achieve below output based on data provided?

I want to transpose the below input format into expected output as below. Please suggest.

Input :

Month

SEGMENT

SITE

Values

Oct-23

Segment1

Site1

1000

Oct-23

Segment2

Site2

984

Oct-23

Segment3

Site3

234

Nov-23

Segment1

Site1

1100

Nov-23

Segment2

Site2

228

Nov-23

Segment3

Site3

2200

Output

Oct-23

Nov-23

SEGMENT

Segment1

1000

1100

SEGMENT

Segment2

984

228

SEGMENT

Segment3

234

2200

SITE

Site1

1000

1100

SITE

Site2

984

228

SITE

Site3

234

2200


Tagged:

Best Answer

Answers