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
huzzapac
Regular Visitor

YOY%

Hii Everyone!


I need to know what will be the YOY% for the price I have for the table properties with column name Current price. Please Provide me dax for that.

 

Thank you in Advance!

1 ACCEPTED SOLUTION

Hii @huzzapac 

YoY % Current Price = 
VAR CurrentYearPrice = SUM('Property Table'[Current_Price])
VAR PreviousYearPrice = 
    CALCULATE(
        SUM('Property Table'[Current_Price]),
        SAMEPERIODLASTYEAR('Transactional Table'[Transaction_Date])
    )
RETURN
    IF(
        NOT ISBLANK(PreviousYearPrice),
        DIVIDE(CurrentYearPrice - PreviousYearPrice, PreviousYearPrice, 0),
        BLANK()
    )



If this helps, I would appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!

Proud to be a Super User!!

View solution in original post

5 REPLIES 5
huzzapac
Regular Visitor

I want it only based on years not based on the property type column I have ploted in table

Hii @huzzapac 

YoY % Current Price = 
VAR CurrentYearPrice = SUM('Property Table'[Current_Price])
VAR PreviousYearPrice = 
    CALCULATE(
        SUM('Property Table'[Current_Price]),
        SAMEPERIODLASTYEAR('Transactional Table'[Transaction_Date])
    )
RETURN
    IF(
        NOT ISBLANK(PreviousYearPrice),
        DIVIDE(CurrentYearPrice - PreviousYearPrice, PreviousYearPrice, 0),
        BLANK()
    )



If this helps, I would appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!

Proud to be a Super User!!
Khushidesai0109
Super User
Super User

Hiii @huzzapac 

YoY % Change =
VAR CurrentYearPrice =
CALCULATE(
SUM(PropertyTable[Current_Price]),
FILTER(PropertyTable, PropertyTable[Year] = MAX(PropertyTable[Year]))
)

VAR PreviousYearPrice =
CALCULATE(
SUM(PropertyTable[Current_Price]),
FILTER(PropertyTable, PropertyTable[Year] = MAX(PropertyTable[Year]) - 1)
)

RETURN
IF(
NOT ISBLANK(PreviousYearPrice),
DIVIDE(CurrentYearPrice - PreviousYearPrice, PreviousYearPrice, 0),
BLANK()
)



If this helps, I would appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!

Proud to be a Super User!!

I want it only based on years not based on the property type column I have ploted in table

Tutu_in_YYC
Super User
Super User

Hi, you must be new here. YOY% calculation can be done in many ways, and mostly dependant on how your model is structured. If you could provide more details, eg a sample of your data etc, the community may be able to help you faster.

For now, the quick and dirty way is this:

Tutu_in_YYC_0-1742324678924.png


Here is a resource for quick measure
https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-quick-measures



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.