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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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]

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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]

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.