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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
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. 

2 REPLIES 2
Anonymous
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. https://www.dropbox.com/s/ev1ix4ugtb2prvm/Sample.xlsx?dl=0

edhans
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

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors