cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

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

Accepted Solutions
Highlighted
Super User IV
Super User IV

Re: Creating a Relative Frequency table

@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')))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
Highlighted
Super User IV
Super User IV

Re: Creating a Relative Frequency table

@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')))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Highlighted
Post Patron
Post Patron

Re: Creating a Relative Frequency table

Many thanks, works like a charm

 

Regards,

Chris

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors