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
Anonymous
Not applicable

Need help on this DAX if condition

Hi,

How to convert this into DAX   

 

if([Type]='S', [Noti number])   ?

2 ACCEPTED SOLUTIONS
Icey
Community Support
Community Support

Hi @Anonymous ,

 

For columns, try this :

Measure =
IF ( MAX ( 'Table'[Type] ) = "S", MAX ( 'Table'[Noti number] ) )
Column =
IF ( 'Table'[Type] = "S", 'Table'[Noti number] )

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

View solution in original post

ziyabikram96
Helper V
Helper V

IF ( SELECTEDVALUE([Type]) == "S", MAX OR MIN([Noti number]),blank()). 

View solution in original post

4 REPLIES 4
ziyabikram96
Helper V
Helper V

IF ( SELECTEDVALUE([Type]) == "S", MAX OR MIN([Noti number]),blank()). 

amitchandak
Super User
Super User

@Anonymous , Try like

if([Type]="S", [Noti number], blank())

Anonymous
Not applicable

Hi,

Only the existing measure values are listing out while writing DAX, the column "Type" is not listed.  

MuraliPrasathS_0-1610465066955.png

 

Icey
Community Support
Community Support

Hi @Anonymous ,

 

For columns, try this :

Measure =
IF ( MAX ( 'Table'[Type] ) = "S", MAX ( 'Table'[Noti number] ) )
Column =
IF ( 'Table'[Type] = "S", 'Table'[Noti number] )

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

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.