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
ZaurJ
Frequent Visitor

How to split value between different rows?

hi,

 

Below is imitation of database I link to Power BI.

 

So I need my Power BI report to ignore row with "Fixed" section name and split row's value between all other remaining sections (A, B and C) based on time. Example - row with section "A" shall get $12,500 from Fixed. Calculation: 40,000 * 5 days / (5+8+3). Row "B" would get  20,000 : 40,000 * 8 days / (5+8+3). And so on.

 

Is such data adjustment even possible in Power BI? I guess I need to create a new column which would take values form "Fixed" row and add to other existing rows. Can you please help me with DAX formula?

 

Section Value Time
A         20,000  5
B         30,000  8
C         15,000  3
Fixed         40,000 
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

lbendlin_0-1716682684004.png

 

Value with Fixed = 
var f = CALCULATE(sum('Table'[ Value ]),'Table'[Section]="Fixed")
var t = sumx(filter(all('Table'),[Section]<>"Fixed"),[Time])
var b = ADDCOLUMNS('Table',"v",f*[Time]/t)
return sumx(b,[v]+[ Value ])

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

lbendlin_0-1716682684004.png

 

Value with Fixed = 
var f = CALCULATE(sum('Table'[ Value ]),'Table'[Section]="Fixed")
var t = sumx(filter(all('Table'),[Section]<>"Fixed"),[Time])
var b = ADDCOLUMNS('Table',"v",f*[Time]/t)
return sumx(b,[v]+[ Value ])

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.