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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
lmcpinto
Frequent Visitor

Calculated column

Hello everyone, I have a doubt.

I need the following, if column 3 has event "Envio de Comunicação", then in column Is Comunicação, it should appear "Envio de Comunicação" for all the ids that have the event happening.

 

For example, id 1 should have "Envio de Comunicação" in both rows instead of only having when column 3 is "Envio de Comunicação". Once the event happens, all the corresponding ids should have "Envio ..." Or " Não envio...:"

 

Thank you in advance!

lmcpinto_0-1669031019667.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @lmcpinto ,

 

You can create a calculated column by below code.

Is Comunicação =
VAR _LIST =
    CALCULATETABLE (
        VALUES ( 'Table'[Column3] ),
        ALLEXCEPT ( 'Table', 'Table'[Column1] )
    )
RETURN
    IF (
        "Envio de Comunicação" IN _LIST,
        "Envio de Comunicação",
        " Não Envio de Comunicação"
    )

Result is as below.

RicoZhou_0-1669098738184.png

 

Best Regards,
Rico Zhou

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @lmcpinto ,

 

You can create a calculated column by below code.

Is Comunicação =
VAR _LIST =
    CALCULATETABLE (
        VALUES ( 'Table'[Column3] ),
        ALLEXCEPT ( 'Table', 'Table'[Column1] )
    )
RETURN
    IF (
        "Envio de Comunicação" IN _LIST,
        "Envio de Comunicação",
        " Não Envio de Comunicação"
    )

Result is as below.

RicoZhou_0-1669098738184.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you!!!!!

Helpful resources

Announcements
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.