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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Rosebud
New Member

subtract if

Hi All, 

 

I need help figuring something out in Power BI. 

 

I am using the matrix visualization. 

 

I have a column I created that shows either Pre Test, Test, or Post Test based on week numbers. This is in the rows field. 

 

I have 3 measures in the values field that show a metric %. I would like to be able to take that metric % and subtract Post Test from Pre Test.

 

Is there a way to do this? I am open to adding a new visualization to show the data, but I can't figure out how to subtract with the conditions.

 

Thank you!

1 ACCEPTED SOLUTION
Rosebud
New Member

I figured it out if anyone were to need help with this in the future.

 

Group 1 Delta = Calculate([Group 1 Metric],filter('Dataset name','Dataset name'[StatusColumn]="time frame"))-Calculate([group 1 delta],filter('Dataset name','Dataset name'[StatusColumn]="time frame"))

View solution in original post

1 REPLY 1
Rosebud
New Member

I figured it out if anyone were to need help with this in the future.

 

Group 1 Delta = Calculate([Group 1 Metric],filter('Dataset name','Dataset name'[StatusColumn]="time frame"))-Calculate([group 1 delta],filter('Dataset name','Dataset name'[StatusColumn]="time frame"))

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.