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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

dax

i want to show last year sales, this yar sales from total sales but according to the fiscal year that is already created in the database (eg 22-23, 23-24) ...... i have tried different measures but its not matching this fiscal year. Also can i display Yoy percentage with this this fiscal year ?new12.PNG

2 ACCEPTED SOLUTIONS

explain how these numbers got it

Categorylast year salesthis year

Aircare10945577,4911584772,68

View solution in original post

Ahmedx
Super User
Super User

you need to write the following

AMO = SUM('share data 1'[Sum of Retailing]) 
lastYear = CALCULATE([AMO],'share data 1'[Fiscal] ="22-23")
NowYear = CALCULATE([AMO],'share data 1'[Fiscal] ="23-24")
% growth = DIVIDE([NowYear],[lastYear])-1

View solution in original post

6 REPLIES 6
Ahmedx
Super User
Super User

you need to write the following

AMO = SUM('share data 1'[Sum of Retailing]) 
lastYear = CALCULATE([AMO],'share data 1'[Fiscal] ="22-23")
NowYear = CALCULATE([AMO],'share data 1'[Fiscal] ="23-24")
% growth = DIVIDE([NowYear],[lastYear])-1
Ahmedx
Super User
Super User

Share some data to work with (in a format the can be pasted in an MS Excel file) and show the expected result

Anonymous
Not applicable

last year sales = CALCULATE(SUM(PSR[Retailing]),SAMEPERIODLASTYEAR('Dates'[Dates].[Date]))
i have used this one but its not showing same result
 
Anonymous
Not applicable

new12.PNG

explain how these numbers got it

Categorylast year salesthis year

Aircare10945577,4911584772,68

in a format the can be pasted in an MS Excel file or pbix

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.

Top Solution Authors