Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi BPI users,
I have a question on Dax, I have column contains 7 product names and I want to create a Y/N column where Y = all the 7 product names and N = include all except one product name . Is there a switch function we can use in DAX to do that
@Anonymous
Do you want to use this in the filter or calculation?
could you pls provide the sample data and expected output?
Proud to be a Super User!
I want to use that in a filter
the total products I have is
My expected output for Y is all the 7 products together and N should have all the 6 products except the one which is left out.
Hi Greg,
The formula you suggested gives me Y= all 7 product and N= only one product. but I want for N = all product 6 except one. This is where I am stuck
@Anonymous Sure:
Column =
SWITCH([Product],
"Product No","N",
"Y"
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |