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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ChristianDGreat
Resolver I
Resolver I

Cumulative after a calculation

So I have this table

 

WeekEndingRevenue%NetCumulative Net
2022-11-26     1,107.9414.8%         164.15                   164.15
2022-12-03   15,507.6614.7%     2,281.45               2,445.60
2022-12-10   45,913.6914.7%     6,740.76               9,186.37
2022-12-17   85,098.0614.7%   12,550.59             21,736.95
2022-12-24   76,295.6414.6%   11,172.44             32,909.39
2022-12-31   68,372.4314.5%     9,929.34             42,838.73
2023-01-07   80,043.8214.4%   11,522.27             54,361.00
2023-01-14   91,107.9714.3%   13,037.08             67,398.08
2023-01-21   81,853.0614.2%   11,660.92             79,059.00
2023-01-28   71,401.5414.1%   10,072.15             89,131.15

 

So the goal is to calculate Cumulative Net

To get Cumulative Net we need to get the Net first

 

Net = Revenue * %

Cumulative Net = is the running total of the Net

 

Thanks

Chris

 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @ChristianDGreat 

Cumulative Net =
SUMX(
    FILTER(
       TableName,
       TableName[WeekEnding]<=MAX(TableName[WeekEnding])
    ),
    TableName[Revenue]*TableName[%]
)

View solution in original post

1 REPLY 1
FreemanZ
Super User
Super User

hi @ChristianDGreat 

Cumulative Net =
SUMX(
    FILTER(
       TableName,
       TableName[WeekEnding]<=MAX(TableName[WeekEnding])
    ),
    TableName[Revenue]*TableName[%]
)

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.