Reply
hsbnguyen
New Member
Partially syndicated - Outbound

Calculate YOY Difference (absolute and percentage)

Hi everyone

 

I have a set of data with 3 columns (link here)

1. Date (dd/mm/yyyy) from 01/08/2022 to 01/10/2023 (by month)

2. Country (sample data has 6 countries)

3. Water usage (%)

 

I have 2 questions please:

1. I want to calculate the YOY difference (absolute value and also percentage change) of the 3 months August, September, October in 2023 vs 2022. I'm not quite sure how to achieve using Dax yet.

 

2. Assuming the fiscal year starts from July, I would like to calculate YTD Average of Water usage. Is it best practice to create a date table with month order (start at July as 1)? I'm not quite sure on how to approach this with odd fiscal year end yet.

 

Really appreciate your advice and guidance.

 

Many thanks!!!

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Syndicated - Outbound

Hi @hsbnguyen ,

Here is a very detailed guide.
Month-related calculations – DAX Patterns
And check the model:

vcgaomsft_0-1700031575937.png

Best Regards,
Gao

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
v-cgao-msft
Community Support
Community Support

Syndicated - Outbound

Hi @hsbnguyen ,

Here is a very detailed guide.
Month-related calculations – DAX Patterns
And check the model:

vcgaomsft_0-1700031575937.png

Best Regards,
Gao

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

avatar user

Helpful resources

Announcements
FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)