cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Syndicate_Admin
Administrator
Administrator

¿Cómo obtener esta expresión en DAX?

¿Cómo puedo convertir la siguiente medida SQL en DAX?

if [A]=[B] then 'TRUE'
ELSEIF [B]='All' then 'TRUE' END

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Hola @armughan , usted puede conseguir esto por

IF([A] = [B],TRUE(),IF([B] = 'All',TRUE(),BLANK()))

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Hay @armughan,

Si desea crear una nueva columna , puede usar el siguiente dax:

Column = IF('Table'[A]='Table'[B]||'Table'[B]="All",TRUE(),BLANK())

Y si desea crear una medida, puede probar el siguiente dax:

Measure = IF(MAX('Table'[A])=MAX('Table'[B])||MAX('Table'[B])="All",TRUE(),BLANK())

Final obtendrá :

vluwangmsft_0-1626144703769.png

Deseo que sea útil para usted!

Saludos

Lucien

Syndicate_Admin
Administrator
Administrator

Hola @armughan , usted puede conseguir esto por

IF([A] = [B],TRUE(),IF([B] = 'All',TRUE(),BLANK()))

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors