Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello guys, I am facing problem while using some formula. please help!!
I have actual sale and expected sale of a salesperson. Expected sales is in the form of range (Ex- 20-30K, 30-40k etc).
now i have to compare both these and then write how many salesperson has met their target or lies in expected sales.
EX- Actual sales 2000, Expected sales 1000-2000, Now calculate how many salesperson met the target ...if no salesperson achive expected sales or below than that then i should get 0 otherwise count of salesperson.
Can anyone guide me which formula should i use???
Hi mayankkumar,
You can refer to steps below:
1. My sample data.
2. Click Query Editors-> Transfrom-> Split Columns.
3. Then you will have a splited table like this.
4. After "Applied&Close", you can create a measure using DAX formula as below.
Count = CALCULATE(COUNT(Table1[Salesman]), FILTER(ALL(Table1), Table1[Actual Sales] >= Table1[Lower Limit] && Table1[Actual Sales] <= Table1[Upper Limit]))
Regards,
Jimmy Tao
User | Count |
---|---|
91 | |
73 | |
68 | |
63 | |
55 |
User | Count |
---|---|
96 | |
89 | |
73 | |
61 | |
58 |