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
varnanavijay
Frequent Visitor

Dynamically select first part of a coloumn merge and put that into small multiples.

Hello Community,

 

I have a Figure- Curve parameter slicer whose inputs come from figure- curve parameter named parameter field i created from columns of gesamt table. These column are a combination of 2 parameters say for ex Tool- Velocity or Supplier- Temperature . This parameter field is my legend. Now i want to create a column or measure that give the output as the first part of figure-Curve parameter ie in case of tool- velocity it should give tool. so i can put that tool in small multiples and see different tool.

I tried using dax but its not working.

Field =
VAR SelectedParameter = SELECTEDVALUE('Figure - Curve parameters'[Figure - Curve parameters Fields])
VAR FirstField =
    SWITCH(
        SelectedParameter,
        "Velocity-Tool", LEFT(SelectedParameter, FIND("-", SelectedParameter) - 1)
    )
RETURN
    FirstField
 
not sure if this is correct also.
 
Regards,
Varnana
1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @varnanavijay 

 

You can try the following methods.

FirstField =
VAR SelectedParameter =
    SELECTEDVALUE ( 'Figure - Curve parameters'[Figure - Curve parameters Fields] )
VAR FirstField =
    LEFT ( SelectedParameter, FIND ( "-", SelectedParameter ) - 1 )
RETURN
    FirstField

 

Best Regards,

Community Support Team _Charlotte

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

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.