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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Mooma
Frequent Visitor

DAX formula needed to extrapolate missing values

Dataset: 

Mooma_0-1693579993204.png

Table:

Mooma_1-1693580046187.png

Table2:

Mooma_2-1693580068497.png

 

What I have so far:

Mooma_3-1693580164856.png

Sales % = CALCULATE(DIVIDE(SUM([Sales]),CALCULATE(SUM([Sales]),ALLSELECTED('Table'))))
Profit = SUM([Profit Amount])
 
Only profit of Id = aaa is always available.
 
I need to extrapolate "Profit" for Ids bbb, ccc, ddd. Sales % depends how many Ids selected.
It should calculate Total profit = 1000 / 60% = 1666.67
Profit of bbb = Total profit * 20% and so on.
 
Expected result if all Ids selected:
Mooma_5-1693580806119.png

Expected result if only Ids aaa and bbb selected:

Mooma_6-1693580851448.png

I appreciate your help.

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @Mooma 

I am not sure if I am addressing your question properly, as you already have extrapolated profits in the visualization, but does the following measure answer your question?  

 

Sakiko_0-1693663281539.png

 

View solution in original post

4 REPLIES 4
DataNinja777
Super User
Super User

Hi @Mooma 

I am not sure if I am addressing your question properly, as you already have extrapolated profits in the visualization, but does the following measure answer your question?  

 

Sakiko_0-1693663281539.png

 

Hi @DataNinja777 

"Extrapolated profit" result is what I'm looking for, unfortunately I cannot replicate it.

Mooma_1-1693814442242.png

I see you added table "ID". What are the relationships?

Thanks

Hi @Mooma,

 

The relationship between the ID dimension table and two fact tables with numbers

are as shown below, as both fact tables contained the numbers, I thought it is easier to separate out the ID dimension table for clarification purposes and create relationships with the two fact tables.  

Sakiko_0-1693820192317.png

Sakiko_2-1693820358314.png

I attach the pbix file for this task:

https://1drv.ms/u/s!AlqFfzVTqicpnW54pZuvMrAu9qKv?e=ANmLbD

 

That works. Thank you

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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.