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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Summing calculated column based on IF condition

Hi, 
I have two data sets merged into 1 by a join. 
in data set A I have complete data for forecast at volume and value level.
in data set B I only have the volumes only which are available for sales. 

Sample data set:

FAA_1-1624512215097.png


I need to calculate the value of the constraint Forecast in value based on following:

- Blanks means the volume and value are same as the unconstraint forecast.

- Value is calculated by dividing value by volume for each SKU. (i m using sumx formula to calculate the value for each line)

For instance for SKU 4, the constraint value is 6000. 
And total constraint value across all SKUs is 187,600

 

I am getting following result when I view it SKU-wise. However, at the total level its not summing up unconstrained + constrained forecast value and just giving a sum of constrained value.
(not based on sample above)

FAA_2-1624512543132.png

 

Would really appreciate if someone can help me out on calculating the correct total constraint value!

2 REPLIES 2
Tanushree_Kapse
Impactful Individual
Impactful Individual

Anonymous
Not applicable

Hi Thanks, but this isnt working for me. 

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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