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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.