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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
paxdolphin
New Member

Pivot a pivot

Hi,

Can someone help me with this?

 

I have Table A as shown below and i would like to count the number of ProposalID each person has (Table B). Thereafter, i would like to have another table or chart to show how many people have 1 proposal, 2 proposals, 3 proposals etc.

 

Thank you.

 

Table A

NameProposalID
Paul333
Tom222
Paul431
Paul321
James521

 

Table B

NameCount
Paul3
Tom1
James1
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @paxdolphin ,

 

1.In desktop, create a measure like

Count = CALCULATE(COUNT('Table'[ProposalID]),FILTER(ALLSELECTED('Table'),[Name]=MAX('Table'[Name])))

vstephenmsft_3-1664357368780.png

 

 

 

2.In Power Query, select the 'Name' and right click 'Group by'. 

vstephenmsft_0-1664357165432.png

Select 'Count Rows' and click OK.

vstephenmsft_1-1664357226309.png

vstephenmsft_2-1664357233207.png

 

 

 

Best Regards,

Stephen Tao

 

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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @paxdolphin ,

 

1.In desktop, create a measure like

Count = CALCULATE(COUNT('Table'[ProposalID]),FILTER(ALLSELECTED('Table'),[Name]=MAX('Table'[Name])))

vstephenmsft_3-1664357368780.png

 

 

 

2.In Power Query, select the 'Name' and right click 'Group by'. 

vstephenmsft_0-1664357165432.png

Select 'Count Rows' and click OK.

vstephenmsft_1-1664357226309.png

vstephenmsft_2-1664357233207.png

 

 

 

Best Regards,

Stephen Tao

 

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

sorry i think i wasn't clear. The end table which i would like to have is something like this. Can someone tell me how to achieve this? thank you 

 

XNumber of people who submitted x proposals
12
31
Anonymous
Not applicable

Hi @paxdolphin ,

 

I introduced two methods from previous reply.

You may download my attachment for details.

For example, the measure created in power bi desktop, which is the following.

Count = CALCULATE(COUNT('Table'[ProposalID]),FILTER(ALLSELECTED('Table'),[Name]=MAX('Table'[Name])))

 It's the results about the number of ProposalID group by name.

The results are displayed as a table visual in desktop.

 

Hope you understand.

 

 

Best Regards,

Stephen Tao

 

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

drdataguy
Frequent Visitor

You can simply select the name and proposal ID fields and click bar graph to get the expected output: 

drdataguy_0-1664259507086.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors