Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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.
What formula would I need for this calculated column?
Solved! Go to Solution.
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
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,
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
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.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 112 | |
| 108 | |
| 39 | |
| 34 | |
| 27 |