Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I have one table with these columns:
ID
Name
Date
Points
ExpirationDate
Each record represents the points earned by a person on a date, and has an assigned expiration date.
I also have a second table with the amount of points to redeem for each user.
For example, Juan has 50 total points earned on different dates. Juan wants to redeem 50 points for a prize that costs 27 points.
I need the consumption of the 27 required points to be done by prioritizing Juan's points that are closest to expiring.
How can I create this logic in DAX? I thought about previously sorting the table by ExpirationDate and then making a cumulative sum with filters.
But I'm not sure how to implement the necessary filters to respect the logic of prioritizing by expiration date.
I appreciate if someone can help me by providing an example or pseudocode of how to create this measure in DAX.
Thanks,
Power BI is a reporting tool, not a resource management tool.
Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
User | Count |
---|---|
57 | |
46 | |
19 | |
16 | |
15 |
User | Count |
---|---|
116 | |
41 | |
40 | |
28 | |
22 |