Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
hello
i need to create a measure that calculates incentive as per below rules
Achievement | Incentive |
1 to 5 count of sales | 2$ |
6 to 10 count of sales | 4 $ |
11 to 15 count of sales | 6 $ |
16 and above count of sales sales | 8 $ |
what this means, if agent has made 15 transactions, he will get incentive of (2$*5) for first 5 transactions, and (4$*5) for next 5 transactions and (6$ *5) the 5 transactions after. so total incentive= 10+20+30=60$
i created below measure
the data i have is as below table
| agent id | agent name | transaction value (achievement) | date |
| 123 | abc | 2 | 1/11/2023 |
| 456 | def | 1 | 2/11/2023 |
Try something like below. Unless that transaction date has an active relationship with a date table and you're using that in a slicer or filter, in that case use the date from your date table.
[MNP cumulative count]=
CALCULATE(COUNTROWS('categories trans'),ALL('categories trans'[TRANSDATE]),'categories trans'[TRANSDATE]<=MAX('categories trans'[TRANSDATE]))
Please provide sample data that fully covers your issue. That means sales reps with different scenarios.
Please show the expected outcome based on the sample data you provided.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 22 | |
| 10 | |
| 10 | |
| 6 | |
| 5 |