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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
srtamrakar
New Member

Summarize as a Measure

Hello everyone!

I would like to generate a dynamic table relatedParts by filtering out information which is selected by the user on a slicer.

Could anyone please help me with this?

partOptions = DISTINCT(vehicle[part_exchanged]) 
selectedPart = SELECTEDVALUE( partOptions[part_exchanged], "A")
relatedParts = 
SUMMARIZE (
        FILTER (  vehicle, ( vehicle[vehicle_id] in CALCULATETABLE(DISTINCT(vehicle[vehicle_id]), FILTER(vehicle, vehicle[part_exchanged] = [selectedPart]))
            && vehicle[part_exchanged] <> [selectedPart] )  ),
        vehicle[part_exchanged],
        "count", COUNT ( vehicle[vehicle_id] )
    )


image.png

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi srtamrakar,

 

Firstly, power bi doesn't support dynamic calculate column or dynamic calculate table. In addion, you can create a measure using pattern: calculate(..., filter()), then drag the measure to your chart.

 

Regards,

Jimmy Tao

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi srtamrakar,

 

Firstly, power bi doesn't support dynamic calculate column or dynamic calculate table. In addion, you can create a measure using pattern: calculate(..., filter()), then drag the measure to your chart.

 

Regards,

Jimmy Tao

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

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.