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
Naveeduddinj077
Regular Visitor

Cumulative Sum Division

Hi Team,

 

Is it possible to divide a coulum number by sum of other column year wise? I want to know how to get the Yellow highlighted F & G Columns from the below link.

 

https://docs.google.com/spreadsheets/d/1W8WZSIurQNSft12bKQAsSmtUBAKDggHB/edit#gid=1090238853

 

For Ex:  Column F / Sum of Column D

Second Ex: Column E / One Year above of Column C

 

Your help will be highly apprecited.

 

Regards

Naveed

1 ACCEPTED SOLUTION

Hi @Naveeduddinj 

 

Are you creating a mesure with the DAX? If yes, try replacing EARLIER function with MAX function.

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

4 REPLIES 4
v-jingzhang
Community Support
Community Support

Hi @Naveeduddinj077 

 

You can create two calculated columns with below DAX in your original table

Renewal % = DIVIDE('Table'[Existing],CALCULATE(SUM('Table'[New]),ALL('Table'),'Table'[Calendar Year]<EARLIER('Table'[Calendar Year])))
Renewal % 2 = DIVIDE('Table'[Existing],CALCULATE(SUM('Table'[Total]),ALL('Table'),'Table'[Calendar Year]=EARLIER('Table'[Calendar Year])-1))

vjingzhang_0-1684125086418.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Hi @v-jingzhang 

 

I'm getting the below error for second formaula.

 

Naveeduddinj_0-1684141793183.png

 

Hi @Naveeduddinj 

 

Are you creating a mesure with the DAX? If yes, try replacing EARLIER function with MAX function.

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Awesome! This works Thank you

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.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.