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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Getting Value from another Row

hey everyone im trying to do a report where i need to check if the values from "order1" appears in "ReturnId" is this happens i need to get the value of "PointId" from the row where "order1" is filled and put in where the "ReturnId" is the same (i did the example in Excel of what i expect as the result)

Postigo_0-1624649220415.png


PowerBi file 

Is there someway to do this?? Thanks

1 ACCEPTED SOLUTION
selimovd
Most Valuable Professional
Most Valuable Professional

Hey @Anonymous ,

 

the following calculated column should do the job:

Wanted PointID =
VAR vRowReturnID = Planilha1[ReturnId]
VAR vResult =
    CALCULATE(
        MAX( Planilha1[PointId] ),
        FILTER(
            Planilha1,
            Planilha1[order1] = vRowReturnID
        )
    )
RETURN
    IF(
        vRowReturnID <> BLANK(),
        vResult
    )

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

2 REPLIES 2
selimovd
Most Valuable Professional
Most Valuable Professional

Hey @Anonymous ,

 

the following calculated column should do the job:

Wanted PointID =
VAR vRowReturnID = Planilha1[ReturnId]
VAR vResult =
    CALCULATE(
        MAX( Planilha1[PointId] ),
        FILTER(
            Planilha1,
            Planilha1[order1] = vRowReturnID
        )
    )
RETURN
    IF(
        vRowReturnID <> BLANK(),
        vResult
    )

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
Anonymous
Not applicable

Perfect!! thanks a lot

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors