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
cristianml
Post Prodigy
Post Prodigy

Measure for Values in column for same period but previous Fiscal year

Hi,

 

I need HELP to CALCULATE the same value but from PREVIOUS Fiscal year period for each category (Entity, SG, HEADS) that I have in the following columns:

cristianml_0-1631331026265.png

I need this to compare in a visualization thru a clustered column chart and Matrix table.

Note: The FY starts in September but I think this is irrelevant and it can be performed using only the Period colum.

 

How can I do this ?

 

Any idea or trick  for this ?

 

 

Thanks !

 

   

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Generally speaking, the SAMEPERIODLASTYEAR function can solve the problem. Please try.

Measure = CALCULATE(SUM('Table (2)'[Value]),SAMEPERIODLASTYEAR('Table (2)'[Period]))

View solution in original post

4 REPLIES 4
V-lianl-msft
Community Support
Community Support

Generally speaking, the SAMEPERIODLASTYEAR function can solve the problem. Please try.

Measure = CALCULATE(SUM('Table (2)'[Value]),SAMEPERIODLASTYEAR('Table (2)'[Period]))
Ashish_Mathur
Super User
Super User

Hi,

You are writing a calculated column formula in your Table.  Please write a measure in your visual.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur ,

 

How is the measure I need to write in the visual ? 

I do not know what measure you are trying to write but you have to write a measure by clicking on Modelling > New measure.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors