Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi Experts
Need a if statement or something better that I could add as a calculated column into my table. So if column Employees has
1. David Smith
2. Lucy Jones
3. Hemish Patel
4. Steve Bruce
5. Kyle Redman
6. Sarah Sutton
Then team A otherwise team B.
Solved! Go to Solution.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Hi,
Create a 2 column table with the 6 names in column A and Team B in the second column. Create a relationship from the Names column in your table to the Names column in the new 2 column you created. In your table, write this calculated column formula
=if(related('Table2'[Team])="Team B","Team B","Team A")
Hope this helps.
@Anonymous The solution from @Ashish_Mathur is a good way to do my Option A without having to explicitly reference the 'else' so removes the con I mentioned to Option A. 🙂
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com