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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Percentage of average price diff same period last year but for matching items/products only.

Hi,

Actully I'm craeting a KPI . 
Calculate Average price diffrence (Period to Same Period before/last year) :
Taking average of products in the date range and same range last year but matching proucts only. Basically a Inner join of product (selected period products inner join with same period last year products)

 

For ex: From below image if user has selected date rage of 01-Feb-2021 to 05-Jun-2021, then prod(A,B,C,D)Average will be 66.75, but for same period in last year product D is not present then we want to exclude tht product from avg cal. so, new avg will be prod(A,B,C) 61.66 and same period last year  prod(A,B,C) avg is 45. and diffrence will 61.66-45.

NameDepartmentValueProductYearDate(DD-MM-YYYY)
AlexTech99A202101-02-2021
ScottDisp47B202110-02-2021
RayTech39A202110-02-2021
JoyDisp82D202104-06-2021
AlexTech27A202001-02-2020
AlexTech53B202010-02-2020
AlexTech55B202015-02-2020

 Hlp me resolving this issues. Thanks in advance .

 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picuture and the attached pbix file.

All measures are in the attached pbix file.

 

Picture1.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picuture and the attached pbix file.

All measures are in the attached pbix file.

 

Picture1.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable

Thank you for quick help.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors