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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
dinesharivalaga
Post Patron
Post Patron

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 @dinesharivalaga ,

 

@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 @dinesharivalaga ,

 

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 @dinesharivalaga ,

 

@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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.