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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
fancyonion1021
New Member

How to take a measure of Total Cost and create 2 new measures: 2023 Costs and 2024 Costs?

Hi! New user here. My overall task is to create a 2024 goal measure which is 70% of the 2023 Costs. I was thinking the first step would be to separate Total Costs into 2 measures: 2023 and 2024 Costs. Can you please help? I have troubleshoot many forums and YT videos with no success. TIA

fancyonion1021_1-1718809671254.png

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @fancyonion1021 

Based on you description, you can try the following measure.

vyaningymsft_0-1718849661211.png

 

2023 Costs = 
CALCULATE(SUM('Table'[Quantity]),'Table'[Date].[Year] = 2023,ALL('Table'))

2024 Costs = 
CALCULATE(SUM('Table'[Quantity]),'Table'[Date].[Year] = 2024,ALL('Table'))

2024 goal = 
CALCULATE(SUM('Table'[Quantity]) * 0.7,'Table'[Date].[Year] = 2023,ALL('Table'))

 

Best Regards,
Yang

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi, @fancyonion1021 

Based on you description, you can try the following measure.

vyaningymsft_0-1718849661211.png

 

2023 Costs = 
CALCULATE(SUM('Table'[Quantity]),'Table'[Date].[Year] = 2023,ALL('Table'))

2024 Costs = 
CALCULATE(SUM('Table'[Quantity]),'Table'[Date].[Year] = 2024,ALL('Table'))

2024 goal = 
CALCULATE(SUM('Table'[Quantity]) * 0.7,'Table'[Date].[Year] = 2023,ALL('Table'))

 

Best Regards,
Yang

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.