Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

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. 

Frequent Visitor

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

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors
Top Kudoed Authors