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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
ThuJa23
Advocate II
Advocate II

Distribution of actual sales by total target sales

Hi all, 

 

I have 2 tables

Table 1 is sale information by region and items

ThuJa23_0-1679575730090.png

Table 2 is total target sales by items

ThuJa23_2-1679575780738.png

I would like to calculate by using DAX measure, the distribution of each item in each region vs. total target sales of each item. Both table have same filter of year and month. The result should be as below

ThuJa23_4-1679576009901.png

 

In Excel I used Vlookup to look up the value from table 2 to display total target sales for each row of table 1. 

How can we use DAX measure in this case? As our data is store as multidimension cube, so I just can use only DAX Measure, and cannot calculated column. 

 

Thanks for your helps so much!

Thu

 

3 REPLIES 3
tt_and
Helper I
Helper I

Edit: I'm so sorry, I overlooked that you can't edit the model. Can you show us how the tables are related in the model?

 

There's several ways to do this. I'll show you by making a star schema model:


Make dimension tables for attrbutes, in this case Region and Item (unique values) and relate them:

Screenshot 2023-03-23 150752.jpg

 

Then make this measure:

 

% distribution = divide(sum(SalesByRegion[Sales]),sum(SalesByItem[Target sales]))

 

 

Drag columns to table visual:
Screenshot 2023-03-23 150931.jpg

Hi @tt_and , 

 

Above is my quick basic example, but under is the current model between the tables of real data

ThuJa23_0-1679585257895.png

relationship between Table 1 and FAC Table

ThuJa23_1-1679585301799.png

 

Relationship between Table 2 and FAC table

ThuJa23_2-1679585338991.png

 

Do you have ideas how to help me?

 

Thanks so much

Thu

Edit: Wait, where is your second fact table?

 

Ok, you actually have the same structure in your model and should be able to use the simpel dax with DIVIDE if you build the visual table as in my example

Screenshot 2023-03-24 090450.jpg

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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