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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Calculating Percentage of Y/N on a Month-over-Month Basis

I have two columns, as shown below:

Screen Shot 2020-02-19 at 2.14.16 PM.png

 

I've currently calculated the "% Y" rate in the "RECOMMENDED" column using the following formula:

 

 

% Yes = 
DIVIDE (
    CALCULATE ( COUNT ( SA_Rec_Rate_Fact[RECOMMENDED] ), SA_Rec_Rate_Fact[RECOMMENDED] = "Y" ),
    CALCULATE ( COUNT ( SA_Rec_Rate_Fact[RECOMMENDED] ), ALLSELECTED ( SA_Rec_Rate_Fact[RECOMMENDED] ) )
) 

 

 

My question is this:  How do I calculate the "% Y" rate for each indivdual month? I would like to visualize this as a line chart with the months on the X-axis (September 2019, October 2019, etc.) and the "% Y" rate on the Y-axis.

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous,

First, you can add one calculated column with formula:

format('SA_Rec_Rate_Fact'[DATE_QUALIFIED],"MMMM YYYY")

in table, then applied this new added column in visual Axis and the measure 

in visual Values just like in below screenshot:

aa.JPG

Best Regards

Rena

amitchandak
Super User
Super User

Create a date table, Join you date with that and have month year there.

Create a month subtotal

Refer

https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Datanaut Connect on Linkedin

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
Greg_Deckler
Community Champion
Community Champion

Create a month column using MONTH([DATE_QUALIFIED]). Use that in your Axis and your measure in your Values.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.