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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Get column on based on multiple conditions

Hello

 

In my report I have a table which has columns "TYPE" ,"Meter Size".I have few conditions to display Type- 
 For the types which contains"TMS" then meter sizes"1,3/8,5/8"  must be displayed.For other TYPES all Meter Sizes musst be displayed.

 

 

 

1 ACCEPTED SOLUTION
_AAndrade
Super User
Super User

What you're looking for is something like this:

_AAndrade_0-1713279020194.png

I'm using this measure:

 IF(
    CONTAINSSTRING(SELECTEDVALUE(T_MeterSize[Activity Type]),"TMS"),
    "1,3/8,5/8",
    SELECTEDVALUE(T_MeterSize[Meter Size])
 )




Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




View solution in original post

3 REPLIES 3
_AAndrade
Super User
Super User

What you're looking for is something like this:

_AAndrade_0-1713279020194.png

I'm using this measure:

 IF(
    CONTAINSSTRING(SELECTEDVALUE(T_MeterSize[Activity Type]),"TMS"),
    "1,3/8,5/8",
    SELECTEDVALUE(T_MeterSize[Meter Size])
 )




Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




_AAndrade
Super User
Super User

Hi @Anonymous,

Could you please provide more information about your issue?
A pbix with same data would be nice if it's possible to you or pictures of your data and formulas





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Anonymous
Not applicable

here is the report

PavaniD_0-1713276209762.png

For the types which contains"TMS" then "TMS TYPE" having meter sizes"1,3/8,5/8"  must be displayed.For other TYPES all Meter Sizes must be displayed.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors
Top Kudoed Authors