Reply
danidicky
New Member
Partially syndicated - Outbound

Convert Calculated Column to DAX measure

Hi all,

can you help me to convert a Calculated Column to DAX measure ?

This is the model:

danidicky_0-1709888815822.png

 and this is the calculated coloumn:

danidicky_1-1709888988939.png

I would convert to measure...

 

Thanks

 

 

 

1 ACCEPTED SOLUTION
avatar user
Anonymous
Not applicable

Syndicated - Outbound

Hi @danidicky ,

Please try below dax formula:

Da_produrre =
SUMX (
    Articoli,
    IF (
        [Speciale] = 1,
        IF ( RELATED ( VISART[Effettiva] ) < 0, - RELATED ( VISART[Effettiva] ), 0 ),
        IF (
            ( DIVIDE ( [Bad Dinamico], 240 ) * 30 )
                - RELATED ( VISART[Effettiva] ) <= 0,
            0,
            CEILING (
                ( DIVIDE ( [Bad Dinamico], 240 ) * 30 )
                    - RELATED ( VISART[Effettiva] ),
                [Pz_Pallet]
            )
        )
    )
)

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
avatar user
Anonymous
Not applicable

Syndicated - Outbound

Hi @danidicky ,

Please try below dax formula:

Da_produrre =
SUMX (
    Articoli,
    IF (
        [Speciale] = 1,
        IF ( RELATED ( VISART[Effettiva] ) < 0, - RELATED ( VISART[Effettiva] ), 0 ),
        IF (
            ( DIVIDE ( [Bad Dinamico], 240 ) * 30 )
                - RELATED ( VISART[Effettiva] ) <= 0,
            0,
            CEILING (
                ( DIVIDE ( [Bad Dinamico], 240 ) * 30 )
                    - RELATED ( VISART[Effettiva] ),
                [Pz_Pallet]
            )
        )
    )
)

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)