Forum Discussion
Setting a Quarterly Target
- 6 years ago
Hi paulfink ,
Assuming you have a sale table named 'Table1' which have column [SalesPerson], [SaleAmount] and [Date], then you may create measure like DAX below .
Award = VAR _SaleTarget = 100 VAR _AwardAmount = 1000 VAR _TotalSale = CALCULATE ( SUM ( Table1[SaleAmount] ), FILTER ( ALLSELECTED ( Table1 ), Table1[SalesPerson] = MAX ( Table1[SalesPerson] ) && YEAR ( Table1[Date] ) = YEAR ( MAX ( Table1[Date] ) ) && QUARTER ( Table1[Date] ) = QUARTER ( MAX ( Table1[Date] ) ) ) ) RETURN IF ( _TotalSale > _SaleTarget, _AwardAmount, BLANK () )Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
paulfink
Can you share some sample data and the expected result to have a clear understanding of your question?
You can save your files in OneDrive, Google Drive, or any other cloud sharing platforms and share the link here.
____________________________________
How to paste sample data with your question?
How to get your questions answered quickly?
_____________________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon if you like this reply š
- paulfink6 years agoPost Patron
There is no sample data as i haven't been able to make anything that works.
Not sure what else to put.
This is going into a table that has other payment factors that go along with the sales team's plan.
It looks at the total sales they have made in the Quarter and will look at their target if it greater than or equal to it will award a fixed amount to them
- v-xicai6 years agoCommunity Support
Hi paulfink ,
Assuming you have a sale table named 'Table1' which have column [SalesPerson], [SaleAmount] and [Date], then you may create measure like DAX below .
Award = VAR _SaleTarget = 100 VAR _AwardAmount = 1000 VAR _TotalSale = CALCULATE ( SUM ( Table1[SaleAmount] ), FILTER ( ALLSELECTED ( Table1 ), Table1[SalesPerson] = MAX ( Table1[SalesPerson] ) && YEAR ( Table1[Date] ) = YEAR ( MAX ( Table1[Date] ) ) && QUARTER ( Table1[Date] ) = QUARTER ( MAX ( Table1[Date] ) ) ) ) RETURN IF ( _TotalSale > _SaleTarget, _AwardAmount, BLANK () )Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.