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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
ryanp1989
New Member

IF help needed - new measure

Hi all,

 

Power BI newb here despearatly trying to get my head roudn all this. Trying to rebuild Excel sales report in PowerBI but there are a few manual calculations I'm struggling with and I'm hoping someone can help... Please!

 

- a calculation is needed that does "quantity"*-1805 IF column "x" is populated with a "Y" BUT not if the first 4 characters of the column "itemnumber" are "DISC", in which case no deduction should be made. 

 

Any guidance here most welcome

 

Thanks

 

R

2 REPLIES 2
FreemanZ
Super User
Super User

hi @ryanp1989 

could you paste some sample data with expected result to help those who might be able to help you?

A few screenshots below. The table is what I'd like the end result to be but the -1805 next to discount should be zero as the itemnumber begins with "DISC". 

 

ryanp1989_0-1674565812012.pngryanp1989_1-1674566214386.pngryanp1989_2-1674566332268.png

 

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.