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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Calculated the difference between columns of a matrix visual

Hello Everyone,

I have a matrix in which, I am displaying volume of differtent stages at data load. Along with that, I want to show the difference of volume betweek two stages. 

I am placing the fields values in the following way in the matrix visual-

NikhilKumar_0-1626874956138.png

 

Also, the expected structure of matrix visual is as below-

 

Wave/Stage Stage1 Stage2 S2-S1 Stage3 S3-S2 Stage4 S4-S2
Wave1 32 15 -17 13 -2 32 19
Wave2 50 15 -35 12 -3 5 -7
Wave3 55 55 0 55 0 55 0
Wave4 32 45 13 33 -12 33 0
Wave5 22 22 0 22 0 22 0

 

Please suggest ways to calculate and show the difference between two columns in visual.

 

@Pragati11 

@amitchandak @parry2k 

Please advise.

-Nikhil

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

I made a little format change to your source data. I use Pivot function in Query Editor to convert the values in field[Stage] to column names ,like [Stage1][ Stage2][ Stage3][ Stage4] .

Ailsamsft_0-1627010098102.pngAilsamsft_1-1627010098104.png

The final data structure is shown in the figure .

Ailsamsft_2-1627010098106.png

Then return to Desktop View and add a Matrix visual in report .

Ailsamsft_3-1627010098106.pngAilsamsft_4-1627010098107.png

Then create calculated columns to count the diff between two columns .

S2-S1 = 'Table'[Stage2]-'Table'[Stage1]
S3-S2 = 'Table'[Stage3]-'Table'[Stage2]
S4-S3 = 'Table'[Stage4]-'Table'[Stage3]

The final result is as shown :

Ailsamsft_5-1627010098108.png

I have attached my pbix file , you can refer to it .

 

Best Regards

Community Support Team _ Ailsa Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous 

I made a little format change to your source data. I use Pivot function in Query Editor to convert the values in field[Stage] to column names ,like [Stage1][ Stage2][ Stage3][ Stage4] .

Ailsamsft_0-1627010098102.pngAilsamsft_1-1627010098104.png

The final data structure is shown in the figure .

Ailsamsft_2-1627010098106.png

Then return to Desktop View and add a Matrix visual in report .

Ailsamsft_3-1627010098106.pngAilsamsft_4-1627010098107.png

Then create calculated columns to count the diff between two columns .

S2-S1 = 'Table'[Stage2]-'Table'[Stage1]
S3-S2 = 'Table'[Stage3]-'Table'[Stage2]
S4-S3 = 'Table'[Stage4]-'Table'[Stage3]

The final result is as shown :

Ailsamsft_5-1627010098108.png

I have attached my pbix file , you can refer to it .

 

Best Regards

Community Support Team _ Ailsa Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors