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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Igotzepowerbi
Frequent Visitor

Year Title needs to be dynamic

 

 

 

Hello,

I have three year measures and my client wants the titles to be dynamic. So instead of saying Last Year Sum it would say 2023 - 2 years ago would say 2022. I don't want to have to change the titles every year. Does anyone know of a way to accomplish this?
Example of current dax calc.

2 years ago =
IF (
    SELECTEDVALUE ( 'Dollars / Units'[selected Dollars/Units Name] ) = "Dollars",
    CALCULATE (
        [sum of dollars],
        FILTER (
            'POS Aggregate',
            YEAR ( 'POS Aggregate'[Week End Date] )
                = YEAR ( TODAY () ) - 2
        )
    ),
    IF (
        SELECTEDVALUE ( 'Dollars / Units'[selected Dollars/Units Name] ) = "Units",
        CALCULATE (
            [sum of units],
            FILTER (
                'POS Aggregate',
                YEAR ( 'POS Aggregate'[Week End Date] )
                    = YEAR ( TODAY () ) - 2
            )
        )
    )
)

Igotzepowerbi_0-1713896908990.png

1 ACCEPTED SOLUTION
audreygerred
Super User
Super User

There is not a way to make the headers on viz be dynamic. If people push back on the TY, LY, LLY, LLLY, etc, I usually make a tile for them somewhere that shows what year they are filtered to (in case they don't want to look at the filter pane to see the year they are filtered to) and the explain that that year is equal to TY, and the LY, LLY, LLLY follow from there.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
audreygerred
Super User
Super User

There is not a way to make the headers on viz be dynamic. If people push back on the TY, LY, LLY, LLLY, etc, I usually make a tile for them somewhere that shows what year they are filtered to (in case they don't want to look at the filter pane to see the year they are filtered to) and the explain that that year is equal to TY, and the LY, LLY, LLLY follow from there.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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