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
djm7
Helper I
Helper I

Distribution Sales Target Across Locations

I have a sales target of 100 for the company.

I have 5 locations.

I want to distribute the 100 evenly across the 5 locations using Dax.

Location                           Target

1                                       20

2                                       20

3                                       20

4                                       20

5                                       20

 

I don't want to duplicate the code 5 times, I want 1 dax query that will take the 100 as input and the 5 locations, and output 20 for each location.

4 REPLIES 4
v-veshwara-msft
Community Support
Community Support

Hi @djm7 ,

Just checking in to see if you query is resolved and if any responses were helpful. If so, kindly consider marking the helpful reply as 'Accepted Solution' to help others with similar queries. 

Otherwise, feel free to reach out for further assistance.

Thank you.

Anonymous
Not applicable

Hi @djm7 ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

HI @djm7,

You can try to use following measure formula to calculate the average target based on current location amounts:

formula =
VAR inputted = 100
VAR locationCount =
    CALCULATE ( COUNTROWS ( VALUES ( Table1[Location] ) ), ALLSELECTED ( Table1 ) )
RETURN
    DIVIDE ( inputted, locationCount, -1 )

Regards,

Xiaoxin Sheng

Deku
Super User
Super User

Is this to add a column to a existing table, or create a new table. Will the 100 be from a existing table?


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

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.