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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Using data from the same column

I am trying to calcuate something within the same column. I want to take the data from different years and calculate the percentage difference.

 

Maybe I am close?

 

Calculate(sum(Data Table [column] = 2015 - Calculate(sum(Date Table [column] = 2014 

 

Do this from 2014 until current. Then calculate the percentage difference from there by: Calculate(sum(Data Table [column] = 2015 - Calculate(sum(Date Table [column] = 2014) /(Sum(Data Table [column] = 2015) *(100)

 

This does not work but I am thinking I may be close?

2 REPLIES 2
ChrisMendoza
Resident Rockstar
Resident Rockstar

Hello @Anonymous,

 

Try something like: *this should get you closer even though it is calculating Year to Date*

 

Total = SUM(Table1[Value])
YTD Value = 
TOTALYTD(
    [Total],Table1[Date]
) 
[ LY Value YTD] = 
CALCULATE(
    TOTALYTD([Total],Table1[Date]),
    SAMEPERIODLASTYEAR(Table1[Date])
) 
% Difference = 
DIVIDE([YTD Value]-[ LY Value YTD],[ LY Value YTD])

4.PNG






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Anonymous
Not applicable

Thank you for that information! I created the equations and added the Percent equation with a date field of year to divide it up by year but it is just saying Cant display the visual. Even just having the Percent equation is also saying the same thing. I am sure I needt adjust something but I am stuck at this point. 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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