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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
amyj33
Frequent Visitor

Counting Facebook Followers

I have brought in Facebook data from excel.  I have total # of followers for each day

4/1/17     11,235

4/2/17     11,238

4/3/17     11,241

...

4/30/17   11,337

 

Typically we grow a little every day but there could be a day where we lost someone.  In my chart they want to the total followers for a month to be the number we had on the last day of the month.  They don't want an average for the month.  They want to say that for April we had 11,337 followers which is how many followers we had on the last day of the month.  How do I create a measure for this so that no matter what date range you choose, you'll always have the last day of the month = the total followers for that month?

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @amyj33,

 

If I understand you correctly, you can use ENDOFMONTH function in this scenario. The formula below is for your reference. Smiley Happy

Measure = CALCULATE(MAX(Table1[Followers]),ENDOFMONTH(Table1[Date]))

Note: Just replace 'Table1' with your real table name.

 

Regards

View solution in original post

1 REPLY 1
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @amyj33,

 

If I understand you correctly, you can use ENDOFMONTH function in this scenario. The formula below is for your reference. Smiley Happy

Measure = CALCULATE(MAX(Table1[Followers]),ENDOFMONTH(Table1[Date]))

Note: Just replace 'Table1' with your real table name.

 

Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.