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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ninjoan
Frequent Visitor

Get 80% from column

Hi guys I am new to Power Bi I have a question how can I get 80% of a column that has the value ANSWERED.

 

Example I have a table with the following columns


DURATION = this column has numeric fields in seconds.
DISPOSITION = this column has ANSWERED OR NOT ANSWERED text fields.

 

I made a Column that takes the data from the DURATION column and looks for and puts the number 1 to the cells that have a duration of less than 20 seconds.

wPassOrFail = IF('Cola'[duration] < 20, 1, 0)

What I would like to do is to take 80% of the data from the Column named DISPOSITION with the value ANSWERED

 

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Share some data (in a format that can be pasted in an MS Excel file) and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Here is sample 

DISPOSITIONDURATIONwPassOrFail
ANSWERED151
ANSWERED300
ANSWERED51
NOT ANSWERED121
ANSWERED320
NOT ANSWERED201
ANSWERED181

 

You have not shown the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
kaylastarr
Advocate V
Advocate V

Hello, I am not sure I understand your question. Are you looking to take 80% of random rows from the Disposition column? Are you looking to take the top 80% of the column based on a factor?

HI im looking to take 80% of random rows from the DISPOSITION column with the value ANSWERED

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.