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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

How to handle YoY change be 0 with only Year column?

Hi,

 

I have a Date table in the Russian language, while I do not want to Дата'Год' name. Instead, I want to see only the "Year" name in the visual. To do this I duplicated the date column and extracted the year. Now I have only Year columns with years only. I replaced the year in the visual with the new column of "Year" and all YoY became 0. Can I change the name of the visual only without the above-mentioned steps? if not how can I handle YoY change 0's?

Before with the original date column:

manap_1-1638872484170.png

 

after with extracted year column

manap_0-1638872451766.png

 

 

 

 

4 REPLIES 4
jppv20
Solution Sage
Solution Sage

@Anonymous can you provide some example input data and the current YoY calculations?

Anonymous
Not applicable

Trade_turnover YoY% =
IF(
    ISFILTERED('Дата'[Дата]),
    ERROR("Быстрые меры временной аналитики можно группировать и фильтровать только по иерархии дат или столбцу первичных дат из Power BI."),
    VAR __PREV_YEAR =
        CALCULATE(
            [Trade_turnover],
            DATEADD('Дата'[Дата].[Date], -1, YEAR)
        )
    RETURN
        DIVIDE([Trade_turnover] - __PREV_YEAR, __PREV_YEAR)
)
 
manap_0-1638874069492.png

 

 
jppv20
Solution Sage
Solution Sage

Hi @Anonymous ,

 

Do you just want to change the name of the column in the visual?

In that case you can simply click on the visual and under "Values", choose Rename for this visual:

jppv20_0-1638872938957.png

 

If I answered your question, please mark it as a solution to help other members find it more quickly.

Anonymous
Not applicable

thanks for your quick response, but Data hierarchy does not have rename option in the visual

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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