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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Arioli_Chezhian
Helper II
Helper II

DAX - Calculated column based on IF condition

Hi Team,
I have a scenario to achieve in DAX. The mentioned is the requirement.

Arioli_Chezhian_0-1692800200450.png

 

The Training "T1" should be mapped only to Role 1. If other Role contains the T1 value it should be "Null". Other values in Training can be same. Only for T1 we need to achieve this. Even if data has 100 roles, if any role contains T1 value then it should be "Null" all other values are similar.

Please advice to achieve this output.

1 REPLY 1
AnthonyGenovese
Resolver III
Resolver III

I would do something like this for a caluclated column

 

IF(AND('TableName'[Trainings]="T1", NOT('TableName'[Name]="Role 1")),BLANK(),'TableName'[Trainings])

 

If this post was helpful, please kudos or accept the answer as a solution.
~ Anthony Genovese
Need more PBI help? PM me for affordable, dedicated training or consultant recomendations!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.