Forum Discussion
User068765
3 years agoFrequent Visitor
Subscription revenue based on transaction-level data
Hello all, I have some transaction data that only gets entered where there is activity from the client, with commission earned by me. I need to calculate the current commission based on this dat...
v-jianboli-msft
Community Support
3 years agoHi User068765 ,
Please try:
Measure =
var _a = ADDCOLUMNS(ALL('Table'),"commission",[Price]*IF([Transaction Type]="Cancelled",-1,1)*CALCULATE(MAX('Table (2)'[Commission])))
return SUMX(FILTER(_a,[Transaction Date]<=MAX('Date'[Date])&&[Subscription End Date]>MAX('Date'[Date])),[commission])
If this couldn't work, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.
Refer to:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.