Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Pivot Table by using DAX

Hi Team,

 

Please help me with the below table for Pivot.

 

I have data like this.

 

EmployeeYearValues
A20201.5
B20201.6
C20205.5
D20206.7
E20203.9
F20209.7
G20201.8
A20216.6
B20217.153571
C20217.707143
D20218.260714
E20218.814286
F20219.367857
G20219.921429
A202210.475
B202211.02857
C202211.58214
D202212.13571
E202212.68929
F202213.24286
G202213.79643
A202314.35
B202314.90357
C202315.45714
D202316.01071
E202316.56429
F202317.11786
G202317.67143
A202418.225
B202418.77857
C202419.33214
D202419.88571
E202420.43929
F202420.99286
G202421.54643
A202522.1
B202522.65357
C202523.20714
D202523.76071
E202524.31429
F202524.86786
G202525.42143
A202625.975
B202626.52857
C202627.08214
D202627.63571
E202628.18929
F202628.74286
G202629.29643

But need output below like this

Row Labels2020202120222023202420252026
A1.56.610.47514.3518.22522.125.975
B1.67.15357111.0285714.9035718.7785722.6535726.52857
C5.57.70714311.5821415.4571419.3321423.2071427.08214
D6.78.26071412.1357116.0107119.8857123.7607127.63571
E3.98.81428612.6892916.5642920.4392924.3142928.18929
F9.79.36785713.2428617.1178620.9928624.8678628.74286
G1.89.92142913.7964317.6714321.5464325.4214329.29643

 

Note 1 output should be in DAX formula

         2 Year column has  up to 2090

Please help me with this 

 

Thanks in advance,

2 REPLIES 2
themistoklis
Community Champion
Community Champion

@Anonymous 

 

Do you want on DAX formula that will produce this output?

Can you not use a matrix table?

 

Create a matrix table:

In rows section drag Employee field, in columns section drag Year and in values drag the field Values

Image below:

matrix.JPG

 

Anonymous
Not applicable

Thanks for the replay @themistoklis  but I am expecting the result should be a table visual

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.