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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Guys,
I have table as below, I need to calculate Cumulative Total for each Type for Columns "FNet" and "FLevel" but as a calulcative Columns and not as measure. Since i need to add these columns as Slicer.
I have created a Measure, but i need to convert the same as Calculative Columns,
Cumulative = CALCULATE(SUM('Table'[FNet]), FILTER( ALLSELECTED('Table'[Valid From]), ISONORAFTER('Table'[Valid From], MAX('Table'[Valid From]), DESC))
Please Help me to get the same Calculation in Calculative Column..,
| Type | Valid From | FNet | FLevel |
| Base | 1/10/2020 | 100 | 20 |
| Base | 1/17/2020 | 200 | 30 |
| Base | 1/24/2020 | 50 | 0 |
| Skip | 1/10/2020 | 0 | 100 |
| Skip | 1/17/2020 | 500 | 0 |
Make sure you have a date table and join it with your table. And try like this example
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(date,date[date] <=maxx(date,date[date])))
% of GT
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(date,date[date] <=maxx(date,date[date])))/SUMX(all(Sales),Sales[Sales Amount]),
In case you are looking for sub total or % of sub total refer
https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390
@amitchandak Thanks for your reply. Based on the formula which you provided, i created the Cumulative Column for "FNet" and it works perfectly but if i try the same formula for "FLevel" i am getting the error as "Circular dependency"
Both of them should be measures. Do you need a column?
A column will like below, But you can not use measure in that
Cumm column = sumx(filter(table,table[Valid From]<=earlier(table[Valid From])),table[FLevel])
@amitchandak i am getting Syntax error " highlited below".
I need both FNet and FLevel as COLUMN which shows Cumulative Value. When i try to create it as column for both FNet and FLevel it shows as Circular Dependency.
Assuming WMAP is your table. It should be like. Are we taking of 1 table or 2 tables
Column in WMAP = sumx(filter(WMAP,WMAP[Date]<=earlier(WMAP[Date])),WMAP[FNet])
@amitchandak Only 1 Table Called wmap.., Below formula is not workly properly ( I mean the result is incorrect) where as the measure formula which you provided is working perfectly. But the Need is to create a Column and not measure.
Column in WMAP = sumx(filter(WMAP,WMAP[Date]<=earlier(WMAP[Date])),WMAP[FNet])
@amitchandak Sorry for silly question, iam unable to upload pbix file. I dont have any options to attach file. May i know how to do it./?
@amitchandak I Created a Test file.., Created two measures as Cumulative FNet, Cumulative Flevel and divided both columns..,
Now I need to those two measures "Cumulative FNet and Cumulative Flevel as a Column so that i can use it as Filters.
https://drive.google.com/drive/folders/1Fh9MHjmCrxT1e2BegSndCSgEcT0LeAt8?usp=sharing
The formulas are working. But there are nonunique dates you need to add an index column. I can not add as edit query will look for source. Refer :https://yodalearning.com/tutorials/learn-how-create-index-columns-using-power-query/
Please find formula with and without index columns
Cumm Flevel = sumx(filter('Table','Table'[Valid From]<=EARLIER('Table'[Valid From])),'Table'[Flevel])
Cumm FNet = sumx(filter('Table','Table'[Valid From]<=EARLIER('Table'[Valid From])),'Table'[Fnet])
Cumm Flevel = sumx(filter('Table','Table'[Valid From]<=EARLIER('Table'[Valid From]) && 'Table'[index]<=EARLIER('Table'[index])),'Table'[Flevel])
Cumm FNet = sumx(filter('Table','Table'[Valid From]<=EARLIER('Table'[Valid From]) && 'Table'[index]<=EARLIER('Table'[index])),'Table'[Fnet])
@amitchandak Sorry i am not getting the correct result with the formula without index. (Attached the file for your reference along with correct result. Not sure where iam making mistake..,. I also attached the test source file for your reference, Please help.
Also i tried with Index, but it takes huge time and not working at the end with test file.
https://drive.google.com/drive/folders/1Fh9MHjmCrxT1e2BegSndCSgEcT0LeAt8
@amitchandak any help please, awaiting for your reply.., I incorporated the formula and it shows incorrect data.., 1st two Column Value is Correct (based on Measure, but i dont need measure) where as last two Column values are incorrect.
ly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 123 | |
| 99 | |
| 67 | |
| 49 |