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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
pasupathi
Helper I
Helper I

write dax for the following query

Dear Helper

i have 2 columns 

ProjectStatus                   DeveloperName            

DEV                                      A

Developer allocated             B

FSD                                       C

Hold                                     D

Hypercare                             E

Live                                       F

UAT                                      G

question: if any developer name is not under DEV,FSD,UAT show developer name. write DAX  

Regards

pasupathi

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @pasupathi ,

 

I think you just need to create a measure to get the developernames which are not under DEV,FSD,UAT.

Measure:

DeveloperName not in {DEV,FSD,UAT} = 
CALCULATE (
    MAX ( 'Table'[DeveloperName] ),
    FILTER ( 'Table', NOT ( 'Table'[ProjectStatus] IN { "DEV", "FSD", "UAT" } ) )
)

Result is as below.

RicoZhou_0-1655175476769.png

I have attached my sample file as below.

 

Best Regards,
Rico Zhou

 

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

 

View solution in original post

3 REPLIES 3
v-rzhou-msft
Community Support
Community Support

Hi @pasupathi ,

 

I think you just need to create a measure to get the developernames which are not under DEV,FSD,UAT.

Measure:

DeveloperName not in {DEV,FSD,UAT} = 
CALCULATE (
    MAX ( 'Table'[DeveloperName] ),
    FILTER ( 'Table', NOT ( 'Table'[ProjectStatus] IN { "DEV", "FSD", "UAT" } ) )
)

Result is as below.

RicoZhou_0-1655175476769.png

I have attached my sample file as below.

 

Best Regards,
Rico Zhou

 

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

 

rohit_singh
Solution Sage
Solution Sage

Hi @pasupathi ,

Please create a calculated column on your table like below :

rohit_singh_0-1654769311518.png

Dev Name =

var _list = {"DEV","FSD", "UAT"}

var _dev =

CALCULATE(
MIN(Project[DeveloperName]),
FILTER(allexcept(Project, Project[ProjectStatus]), NOT(Project[ProjectStatus]) IN _list
)
)
 
RETURN
_dev
 

Kind regards,

Rohit


Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂

Dear helper

can you share powerbi file

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.