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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
nespe
New Member

Convertir el valor porcentage de la variacion anual en valores absolutos

Convertir el valor porcentage de la variacion anual en valores absolutos:

Variació altes expedients =
IF(
    ISFILTERED('dim_expedient'[Data obertura]),
    ERROR("Les mesures ràpides d'intel·ligència de temps només es poden agrupar o filtrar amb la jerarquia de dates o amb la columna de dates principals que proporciona el Power BI."),
    VAR __PREV_YEAR =
        CALCULATE(
            COUNTA('dim_expedient'[Expedient]),
            DATEADD('dim_expedient'[Data obertura].[Date], -1, YEAR)
        )
    RETURN
        DIVIDE(COUNTA('dim_expedient'[Expedient]) - __PREV_YEAR, __PREV_YEAR)
2 REPLIES 2
v-cgao-msft
Community Support
Community Support

Hi @nespe ,

 

Please try:

Variació altes expedients =
IF (
    ISFILTERED ( 'dim_expedient'[Data obertura] ),
    ERROR ( "Les mesures ràpides d'intel·ligència de temps només es poden agrupar o filtrar amb la jerarquia de dates o amb la columna de dates principals que proporciona el Power BI." ),
    VAR __PREV_YEAR =
        CALCULATE (
            COUNTA ( 'dim_expedient'[Expedient] ),
            DATEADD ( 'dim_expedient'[Data obertura].[Date], -1, YEAR )
        )
    RETURN
        ABS (
            DIVIDE ( COUNTA ( 'dim_expedient'[Expedient] ) - __PREV_YEAR, __PREV_YEAR )
        )
)

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

Gracias, pero continua sin funcionar

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors