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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.