Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
I have created one table which contained two options Yes or No.
I need to sort the data based on selected option. data is like this.
I want to sort this data according to selection
if i am selected yes then it will show only (Excluded data from agencies and mastercard) is true if i am selected No in the slicer it will show all the records pls can someone help me with this.
@rock_stage_user , measure has to return single value,
example
Measure = Var selection = SELECTEDVALUE(slicer[option])
RETURN (SWITCH(TRUE(),
selection = "Yes",countrows(FILTER(new_processor_info,new_processor_info[Excluding data from agencies and Mastercard Employees]= TRUE())),
selection="No",0))
It is also gives the wrong result, i am trying to exclude the domains from main result.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.