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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors