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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
RobKay12
Helper I
Helper I

Formula for Column Summerization

Hello,

 

I have the below table example where each question is a column and the answers are the corosponding rows under. I ultimatley need to show my top 5 questions and how many times each were answered with a "Y" in a chart. I am looking for assistance with the formula to use to show this.

 

Any help is greatly appreciated.

Thanks

 

RobKay12_0-1702392090981.png

 

3 REPLIES 3
wdx223_Daniel
Community Champion
Community Champion

it's better to unpivot your table in M code to a table with two columns, Question and Answer

=Table.UnpivotOtherColumn(YourTable,"Question","Answer")

and upload it into your model

put the Question column in the row area

and put the below measure in the value area

CountY=CALCULATE(COUNTROWS(YourTable),YourTable[Answer]="Y")

HotChilli
Community Champion
Community Champion

Can you define this please? ->"show my top 5 questions"

--

Post the data as text (not a picture) and I'll have a go

I would like to show which of the top 9 questions have more "Y" in responses. For example:

Question 8 would be top question with all "y"s

Question 3 would be next with 4 "Y"s,

and so on.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.