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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
barrymcguigan84
Frequent Visitor

Column to Show Percentages of Months

I would like to create a column in my data that showed the % of a particular value for each month.  

 

So the output would be like this, with the MonthY% being the calculated one.  It would calculate the % of Y's in January and the populate every row with January in the month column with the resust.  

barrymcguigan84_0-1665673945356.png

 

What formula would I need for this calculated column?

1 ACCEPTED SOLUTION
rsbin
Community Champion
Community Champion

@barrymcguigan84 ,

I think this is what you are after:

MonthY% = 
VAR _Month = [Month]
VAR _Yes = CALCULATE( COUNTA([Y/N]), FILTER( YesNo, YesNo[Month] = _Month && [Y/N] = "Y" ))  //Count the Y's
VAR _COUNT = CALCULATE( COUNTA([Y/N]), FILTER( YesNo, YesNo[Month] = _Month ))  //Count all Responses
VAR _Result = DIVIDE( _Yes, _COUNT, 0)

RETURN
     _Result
 

rsbin_0-1665676172942.png

In the future, please post sample data as a table, not an image.  Easier for folks to copy the data to help.

Hope this is the result you are looking for.

Regards,

View solution in original post

2 REPLIES 2
rsbin
Community Champion
Community Champion

@barrymcguigan84 ,

I think this is what you are after:

MonthY% = 
VAR _Month = [Month]
VAR _Yes = CALCULATE( COUNTA([Y/N]), FILTER( YesNo, YesNo[Month] = _Month && [Y/N] = "Y" ))  //Count the Y's
VAR _COUNT = CALCULATE( COUNTA([Y/N]), FILTER( YesNo, YesNo[Month] = _Month ))  //Count all Responses
VAR _Result = DIVIDE( _Yes, _COUNT, 0)

RETURN
     _Result
 

rsbin_0-1665676172942.png

In the future, please post sample data as a table, not an image.  Easier for folks to copy the data to help.

Hope this is the result you are looking for.

Regards,

This has worked perfectly, thank you.  

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.