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