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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
zubairs
Helper I
Helper I

Get cost per route within a branch

Hi Guys,

 

I am currently creating an analysis where I need to allocate the cost of the entire branch to the number or routes being operated through that branch.

 

To give you an example, let's say I have branch "A" which consists of 150 routes. So the total Sales Force cost of the organization is broken down into branches. Now what I need to do is create a measure which will give me cost per route per branch.

 

The branch and the route mapping is on a different table and the cost detail by branch is on a different table.

 

I already created this measure which works fine only when I have filtered for a particular branch. I want the measure to be dynamic and identify the cost for each route by branch when dragged in a table:

 

Sales Force (Cost per route) = DIVIDE(
CALCULATE(SUM(Essbase[Total Sales Force]),Essbase[Branch]="Riyadh")*1000,
CALCULATE(DISTINCTCOUNT(SAP_BO_salesdata[Route]),SAP_BO_salesdata[Sub Region Name]="Riyadh"),
0)
3 REPLIES 3
zubairs
Helper I
Helper I

@amitchandak can you please look into this as well. I'll really appreciate it.

zubairs
Helper I
Helper I

PBIX.png

Jihwan_Kim
Super User
Super User

Hi, @zubairs 

I was trying to look into your question, but it will be very much helpful if I can see the sample pbix file or the sample data, if possible.

Thank you very much.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors