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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Meghbajaj
Frequent Visitor

Need Help with Sum

Hi Community,

I want to understand if the following result can be obtained by a measure or need to add a new column? If possible to do by measure, please suggest the formula. Thanks in advance.

 

Meghbajaj_0-1675984811430.png

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Meghbajaj 

you can try to create a column

Column = sumx(FILTER('Table','Table'[ID]=EARLIER('Table'[ID])&&year('Table'[Salary Start Date])=year(EARLIER('Table'[Salary Start Date]))),'Table'[Salary])

1.png

 

pls see the attachment below

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
ryan_mayu
Super User
Super User

@Meghbajaj 

you can try to create a column

Column = sumx(FILTER('Table','Table'[ID]=EARLIER('Table'[ID])&&year('Table'[Salary Start Date])=year(EARLIER('Table'[Salary Start Date]))),'Table'[Salary])

1.png

 

pls see the attachment below

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




FreemanZ
Community Champion
Community Champion

hi @Meghbajaj 

could you elaborate the logic behind?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.