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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Not applicable

Measures for managing a rewards system

Hi there,


I am trying to use powerpivot for running a rewards system. Customers earn points for sales and can redeem at any time before they expire. Points expire 1 year after issue. I have a sales table, a date table, a customer ID table and rewards table. I can calculate points earned ok but I am struggling with creating measures for allocating redeemed points so I have a true balance of points a customer has. Sales table and rewards table are linked by customer ID and the date table links to rewards and sales tables. The rule I want to implement is that redeemed points are used against points earned in chronological order unless they expired at the point of redemption, in which case the next earliest instance of points earned should be used. 

Not applicable

Hi - thanks for the advice on getting an answer to my question, hopefully this post is good enough. I have attached sample data here. Points are earned as 2 points for every £100 spend per order. Points expire 1 year after being earned, I use invoice date as the earned date. When points are redeemed the available balance should be used on a FIFO basis unless they expired before being used. In which case they should be removed from available balance and redeemed points should use next earliest available points. The results tab is what I am trying to aim for, I can get the points, redeemed and **bleep** values. I just cannot work out how to show expired points and only expire them if not redeemed. Any help greatly appreciated.

Super User
Super User

How to get good help fast. Help us help you.

How To Ask A Technical Question If you Really Want An Answer

How to Get Your Question Answered Quickly - Give us a good and concise explanation
How to provide sample data in the Power BI Forum - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.

Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling

Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.