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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sverderame
Helper I
Helper I

Returning data from the wrong column

Total Calendar Year Savings = CALCULATE(Project_Table[2017 Calendar]) + CALCULATE(Project_Table[2018 Calendar]) + CALCULATE(Project_Table[2019 Calendar])

 

I am trying to bring back values from 3 seperate columns (2017 Calendar, 2018 Calendar, 2019 Calendar) based on a 4th coulmn value (Harvest Year). basically when I filter year 2017 I want the value from "2017 Calendar" and so on for 2018 & 2019.

The formula above returns the correct value for "2019 Calendar whern I filter 2019 however it brings back values from a different column (annualized savings) for 2017 and 2018. I've tried using sum, sumx with no success.

 

Thoughts?

1 ACCEPTED SOLUTION
sverderame
Helper I
Helper I

 I think I got it!

 

Total Calendar Year = CALCULATE(Project_Table[2018 Calendar], Project_Table[Harvest Year] = 2018) + CALCULATE(Project_Table[2019 Calendar], Project_Table[Harvest Year] = 2019) + CALCULATE(Project_Table[2017 Calendar], Project_Table[Harvest Year] = 2017)

View solution in original post

1 REPLY 1
sverderame
Helper I
Helper I

 I think I got it!

 

Total Calendar Year = CALCULATE(Project_Table[2018 Calendar], Project_Table[Harvest Year] = 2018) + CALCULATE(Project_Table[2019 Calendar], Project_Table[Harvest Year] = 2019) + CALCULATE(Project_Table[2017 Calendar], Project_Table[Harvest Year] = 2017)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.