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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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