cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Pankjvrji
New Member

Yes/No condition formatting

I have this dataset with yes and no in one column and attributes in another column now if I select yes, the related value in the attribute column will show, and if we choose No, then all the values will appear.

 

kindly help me out !!!!

 

attributeyes/no
AYES 
BYES 
CNO
DNO
2 REPLIES 2
Kishore_KVN
Super User
Super User

Take a slicer in drag that yes/no column into it. Then in a table visual drag attributes measure. It has to be written as below:

Attributes = If(SelectedValue(Yes/No)="Yes",Values(Attributes),Calculate(Values(Attribute),All(Table)))

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!



JoBI
Resolver I
Resolver I

It's not very clear what you're trying to accomplish. 

Do you want to include a slicer in a Page that behaves like this?

If yes, you'll find this post useful:

https://community.powerbi.com/t5/Desktop/Filter-include-all-data-column-yes-no/m-p/945654 

Hope this helps.

 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors