Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Power Bi problem

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???

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi mayankkumar,

 

You can refer to steps below:

 

1. My sample data.

1.PNG

2. Click Query Editors-> Transfrom-> Split Columns.

2.PNG 

3. Then you will have a splited table like this.

3.PNG

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]))

4.PNG  

 

Regards,

Jimmy Tao

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.