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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Pallekan
New Member

cascading filtered data to all rows with same id

Sample data:

 

IDLocationOperationCurrent operation
5578Loc110False
5578Loc220True
5578Loc330False
5578Loc440False
4428Loc210False
4428Loc320False
4428Loc530True
4428Loc440False

 

I want to add a row that contains CurrentLocation which would like this:

 

IDLocationOperationCurrent operationCurrent Location
5578Loc110FalseLoc2
5578Loc220TrueLoc2
5578Loc330FalseLoc2
5578Loc440FalseLoc2
4428Loc210FalseLoc5
4428Loc320FalseLoc5
4428Loc530TrueLoc5
4428Loc440FalseLoc5

 

I have tried the following measure:

Calculate(

Sample Data[Location],

Filter(Sample data, Sample data[Current operation])

)

 

This unfortunatly does not showcase the location for all rows but only the row with True in currentOperation.

 

Is there an easy solution I'm missing? Do I have to use summarize in some fashion?

 

ps: This is done in live connection so only measures are available.

 

Any insight is appreciated, thank you all!

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @Pallekan 

try to

1) create a measure like this:

CurrentLocation = 
VAR _id = MAX(data[ID])
RETURN
MINX(
    FILTER(
        ALL(data),
        data[ID]=_id
            &&data[Current Operation] = TRUE
    ),
    data[Location]
)

2) plot a table visual with the measure and at least the [ID] column.

 

i tried and it worked like this:

FreemanZ_0-1672153587614.png

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

hi @Pallekan 

try to

1) create a measure like this:

CurrentLocation = 
VAR _id = MAX(data[ID])
RETURN
MINX(
    FILTER(
        ALL(data),
        data[ID]=_id
            &&data[Current Operation] = TRUE
    ),
    data[Location]
)

2) plot a table visual with the measure and at least the [ID] column.

 

i tried and it worked like this:

FreemanZ_0-1672153587614.png

amitchandak
Super User
Super User

@Pallekan , Create a new columns

maxx(filter(Table, [ID] = earlier([ID]) && [Current operation] = "True"), [Location])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.