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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Chitemerere
Responsive Resident
Responsive Resident

Creating a Relative Frequency table

I have the following dataset in a table named 'Major Funding':

 

Word

government

donors

igf

government

government

donors

igf

government

donors

no budget yet

government

donors

igf

self-funded

government

donors

no budget yet

government

donors

government

government

government

donors

government

donors

private sector

government

donors

self-funded

government

government

donors

self-funded

self-funded

donors

self-funded

donors

self-funded

government

government

government

donors

government

donors

self-funded

government

donors

self-funded

government

donors

government

donors

government

self-funded

government

self-funded

donors

self-funded

government

donors

self-funded

donors

self-funded

 

I then create a measure called RowCountMajorFunding = COUNTROWS('Major Funding')

 

I then plot a chart of 'Word' as x-axis and 'RowCountMajorFunding' as 'Values' to get the following visual:

Major funding sources.PNG

How can the above chart be converted into a 'Relative Frequency' chart so that it shows % instead of absolute numbers?

Thanking you in advance.

 

Chris

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Chitemerere ,

You can try a measure like

RowCountMajorFunding %= divide(COUNTROWS('Major Funding'),calculate(COUNTROWS('Major Funding'),allselected('Major Funding')))
or
RowCountMajorFunding %= divide(COUNTROWS('Major Funding'),calculate(COUNTROWS('Major Funding'),all('Major Funding')))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Chitemerere ,

You can try a measure like

RowCountMajorFunding %= divide(COUNTROWS('Major Funding'),calculate(COUNTROWS('Major Funding'),allselected('Major Funding')))
or
RowCountMajorFunding %= divide(COUNTROWS('Major Funding'),calculate(COUNTROWS('Major Funding'),all('Major Funding')))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Many thanks, works like a charm

 

Regards,

Chris

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors