Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I want to write a this formula in calculated column dax in power bi : A5+MAX($B$1:B4)
Solved! Go to Solution.
hi, @touseef2660
it's a measure not a calculated column
if you want to make column try below
Column =
var a = 'Power Bi sheet'[Index]
return
SUMX(
FILTER('Power Bi sheet','Power Bi sheet'[Index]<=a),
'Power Bi sheet'[Gross]
)
For the formula you gave Measure 2 = CALCULATE( SUM('Table (4)'[Column1]), 'Table (4)'[Index]<=MAX('Table (4)'[Index]) )
Here commulative gross1 is also a calculated column. which is : if (capital structure[standard filed]="Yes",0,'capital structure'[value])
I think that why the circular dependency error is coming
Can I attach a power BI file here?
I cant see the option to attach the power bi file
Hi, @touseef2660
save your file on dropbox or drive or somewhere else
and provide link of file using link icon (see below image)
https://1drv.ms/f/c/0509e0cead042ba1/EhtU1pL9m5dDrIYQ30JQUdQB1MtMPTc8qQa9LQ2CyE3dww?e=TXE0jj
You can find the files here. I tried your formula
hi, @touseef2660
it's a measure not a calculated column
if you want to make column try below
Column =
var a = 'Power Bi sheet'[Index]
return
SUMX(
FILTER('Power Bi sheet','Power Bi sheet'[Index]<=a),
'Power Bi sheet'[Gross]
)
Hello,
With this Dax, it is giving wrong output if negative and zero value is there. For eg:
The output should be:
But it is giving:
hi, @touseef2660
download PBIX file click HERE
in there mention output with measure and with column
Bro you are amazing. Thanks a ton!!.
Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
You can find the files here : https://1drv.ms/f/c/0509e0cead042ba1/EhtU1pL9m5dDrIYQ30JQUdQB1MtMPTc8qQa9LQ2CyE3dww?e=TXE0jj
There are 2 files one is excel and other is power bi. In excel the 2nd sheet has the desired output. In first sheet it is the data which I have uploaded on power bi sample file.
Thanks
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.