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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jgpbi
Helper I
Helper I

Measure to SUM and discount Column2 based on the data in Column1

I need a measurement that sums Column2 and multplies is by 1 if the value in Column1 equals "Test" otherwise multiply is by 0.93. Essentially, I need a 7% discount if Column1 doesn't say "Test" and a 0% discount is it does equals exactly "Test". My results are wildly incorrect and I can't see why.

 

I have tried this....

 

jgpbi_0-1718040459082.png

 

What math am I missing here?

The results should be

.93

.93

100

93

93

 

 

1 ACCEPTED SOLUTION
jgpbi
Helper I
Helper I

Solution - I was summing the whole column not just the row. Needed an IF

Here is the solution.

Column 2 = IF ( 'Table'[Column1] = "Test", 'Table'[Column2], 'Table'[Column2] * 0.93 )
 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @jgpbi ,

 

I'm very happy that your problem has been solved. Could you please accept your own answer as the solution?

 

Thank you and I wish you a happy life.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

jgpbi
Helper I
Helper I

Solution - I was summing the whole column not just the row. Needed an IF

Here is the solution.

Column 2 = IF ( 'Table'[Column1] = "Test", 'Table'[Column2], 'Table'[Column2] * 0.93 )
 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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