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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Kolumam2810
New Member

Column Calculation

I want to calculate Percentage 2 column from the percentage columns based on the Group A. For example the Percentage 2 first row (1.97) is fetched from the Percentage second row (1.97). How to achieve the same?

 

GroupStart DateEnd DatePercentagePercentage 2
A31/12/202029/06/20211.361.97
A30/06/202130/12/20211.974.05
A31/12/202129/06/20224.054.02
A30/06/202230/12/20224.024.2
A31/12/202229/06/20234.24.17
A30/06/202330/12/20234.174.36
A31/12/202329/06/20244.364.36
A30/06/202430/12/20244.364.53
A31/12/202402/06/20254.5366.98
A03/06/202503/06/202566.980

 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @Kolumam2810 

Please check the below for creating a new column.

 

Picture2.png

 

 

Percentage 2 CC =
VAR currentgroup = 'Table'[Group]
VAR nextstartdate =
MINX (
FILTER (
'Table',
'Table'[Start Date] > EARLIER ( 'Table'[Start Date] )
&& 'Table'[Group] = currentgroup
),
'Table'[Start Date]
)
RETURN
CALCULATE (
SUM ( 'Table'[Percentage] ),
FILTER (
'Table',
'Table'[Start Date] = nextstartdate
&& 'Table'[Group] = currentgroup
)
)
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi, @Kolumam2810 

Please check the below for creating a new column.

 

Picture2.png

 

 

Percentage 2 CC =
VAR currentgroup = 'Table'[Group]
VAR nextstartdate =
MINX (
FILTER (
'Table',
'Table'[Start Date] > EARLIER ( 'Table'[Start Date] )
&& 'Table'[Group] = currentgroup
),
'Table'[Start Date]
)
RETURN
CALCULATE (
SUM ( 'Table'[Percentage] ),
FILTER (
'Table',
'Table'[Start Date] = nextstartdate
&& 'Table'[Group] = currentgroup
)
)
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

Users online (10,750)