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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
billysagala
Frequent Visitor

Calculating Delta of many parameters and Show in The Matrix

Hi All, 

 

Hi All.

Asking for help from you. 

I would like to have a Comparison Table using Matrix on PowerBI of Actual VS Budget. The aim is to know the difference between Actual and Budget from each Component Delta = (Amount of Actual) - Amount of Budget, also Delta Percentage = Delta / Budget.

 

This is the dummy dataset on Excel:

 
NameABCDEFTAG
XY131212Actual
YZ122223Actual
XY221332Budget 
YZ121221Budget 

 

This is what we have in powerBI Matrix:

 

Matrix Trial.JPG

 

 

 

 

 

 

How can i add The Delta and Delta Percentage instead of Total? The aim is to have both on the same column for every row.

 

Thank you for your kind help.

1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@billysagala 

 

You may create measure instead of using column value:

After unpivot the A to F columns, you may create following measures.

 

actual = CALCULATE(SUM('Table'[Value]),FILTER('Table',[TAG]="Actual"))
budget = CALCULATE(SUM('Table'[Value]),FILTER('Table',[TAG]="Budget"))
delta = [actual] - [budget]
delta% = [delta] / [budget]
V-pazhen-msft_0-1616045872793.png

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@billysagala 

 

You may create measure instead of using column value:

After unpivot the A to F columns, you may create following measures.

 

actual = CALCULATE(SUM('Table'[Value]),FILTER('Table',[TAG]="Actual"))
budget = CALCULATE(SUM('Table'[Value]),FILTER('Table',[TAG]="Budget"))
delta = [actual] - [budget]
delta% = [delta] / [budget]
V-pazhen-msft_0-1616045872793.png

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

billysagala
Frequent Visitor

UP UP

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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