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 August 31st. Request your voucher.

Reply
VTur
Frequent Visitor

Add a new column based on several conditions from previous rows

Hello - I'm new with PowerBI and I have run into a problem that is beyond my knowledge: I'd appreciate any help you can give!

 

My dataset consist in a list of credit and consuption movements of different cards (and user).

Here's an example, related to a single card:

VTur_2-1676386932178.png

My goal is to identify each time the machines by mistake give credit to the clients (like in row 5).

I was thinking to compute the difference between the "Final credit€" and the one from the previous record (related obv to the same card and user) and; whenever the delta might be different from the "Import€" of the transaction, give this difference as result.

 

Unfortunately this is far beyond my knowledge, so I'm open to your suggestions!

 

Thanks in advance!

 

0 REPLIES 0

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.