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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

how to write DAX to select YES/NO for specific column with some criteria?

Hi Experts,

Here i am having a scenrio like , Currently we have one “Yes/No” field (Key Accounts) , now I would like it to be changed to below [Any one is Yes, it will become key account]

 

Key Account definition criteria :

Also below are our thoughts on what defines an account as a Key Account:

  • Revenue – Forecasted Revenue >500K? - Yes
  • PACE Account (Account Type column) – Yes
  • Is it embedded engagement  (Delivery Model column)? – Yes

So these kind of conditions there for choosing Key Accounts .

I have to apply these formulas on tables , cards & also into bookmarks.

 

Please help to achieve this ..

 

Thanks

DK

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

@foodd , thanks for your concern about this case. I had a try based on the user's requirement. Please check if there is anything that can be improved. Here is my solution:

 

1.Create a simple data:

 

vlinhuizhmsft_0-1720577038220.png

 

2.Create a measure as follows:

Key Account Measure =
IF (
    MAX('Table'[Forecasted Revenue]) > 500000 ||
    MAX('Table'[Account Type]) = "PACE Account" ||
    MAX('Table'[Delivery Model]) = "Embedded Engagement",
    "Yes",
    "No"
)

3.The final result is shown in the figure:

 

vlinhuizhmsft_1-1720577038223.png

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Since l don't know whether you need a calculated column or a measure, the calculated column code can be added here.

 

Key Account Measure =
IF (
    'Table'[Forecasted Revenue] > 500000 ||
    'Table'[Account Type] = "PACE Account" ||
    'Table'[Delivery Model] = "Embedded Engagement",
    "Yes",
    "No"
)

 

The result is shown in the figure:

vlinhuizhmsft_1-1721033971443.png

 

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

 

Anonymous
Not applicable

Hi @Anonymous ,

 

@foodd , thanks for your concern about this case. I had a try based on the user's requirement. Please check if there is anything that can be improved. Here is my solution:

 

1.Create a simple data:

 

vlinhuizhmsft_0-1720577038220.png

 

2.Create a measure as follows:

Key Account Measure =
IF (
    MAX('Table'[Forecasted Revenue]) > 500000 ||
    MAX('Table'[Account Type]) = "PACE Account" ||
    MAX('Table'[Delivery Model]) = "Embedded Engagement",
    "Yes",
    "No"
)

3.The final result is shown in the figure:

 

vlinhuizhmsft_1-1720577038223.png

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.