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

Conditional Statement

Hi all,

I have some data that consists of a wholesaler and sales reps attached to each wholesaler. Different wholesalers have a different number of sales rep attached to them. Each sales rep has a daily target of 35 visits. I need to show these daily targets against the wholesaler.

What DAX formula could I use to achieve this? Thank you.

WholesalerSales reps attachedTarget per Sales repTargets
A23570
B335105
C435140
D535175
E435140
    
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Kaskazi_Network , Is that product of two columns ??

 

New column

rep Targets= [Sales reps attached]* [Target per Sales]

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Kaskazi_Network , Is that product of two columns ??

 

New column

rep Targets= [Sales reps attached]* [Target per Sales]

Sumanth_23
Memorable Member
Memorable Member

hi @Kaskazi_Network - Please look at the below steps to achieve the same using DAX

 

You need to create the below 3 measures to achieve the desired result. 

SalesRep = MAX('Wholesaler Targets'[Sales reps attached])
TargetPerSalesRep = MAX('Wholesaler Targets'[Target per Sales rep])
TargetPerWholesaler = 'Wholesaler Targets'[SalesRep] * 'Wholesaler Targets'[TargetPerSalesRep]
 

Sumanth_23_0-1600330468635.png

 

Please mark the post as a solution and provide a 👍 if my comment helped with solving your issue. Thanks!

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!

Proud to be a Super User!



The last column shows Wholesaler Targets

 

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.