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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PavaniD
Helper I
Helper I

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 @PavaniD,

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!




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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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