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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
JuanBolas
Helper II
Helper II

Measure for sum of a column based on values in two other columns

Hello,

 

I'm trying to get the variation of the sum of two individual columns (ThisMonth and LastMonth) by client name.  This is to be included in a table which has the top 10 ordered by trips this month (ThisMonth) in descending order.  The table fields are Client Name, ThisMonth (as bar chart), LastMonth, and a Sparkline showing the last 12 Months.  This is all working OK, but I can't get the variation/change to work ([ThisMonth]-[LastMonth])/[LastMonth]).  Both ThisMonth and LastMonth are calculated columns. 

 

 

My data is something like this:

 

ClientName                     ThisMonth                LastMonth

Joe                                   1                               1

John                                 1                               0

Susan                                                                1

Joe                                    1                              0

Joe                                    1                              0

John                                  0                              1

Sue                                    1

 

Thanks in advance for your help.

 

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @JuanBolas 

What is your expected result?

Can you display the result in a table?

 

Best Regards,
Community Support Team _ Eason

Thanks for your message.

 

What I'm looking for is a third column with the variation/change calculated as ([ThisMonth]-[LastMonth])/[LastMonth].

 

Thanks.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors