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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
TashanTheEarl
Frequent Visitor

Population at start of Financial Year

Hello All,

 

I've been stuck on this one over a month now and accepted I need help.

 

I need a DAX Calculation that works out the population (Sum of Members) at the start of that financial year. This needs to work while being sliced by different dimensions. (Currently Membership Grade, Membership Group and Country)

 

This is my 1st time posting in the community and I've provided the additional details below I think will help but if any other details are needed to help assist please let me know.

 

Financial year runs from Nov - Oct

Fact table aggregated at Monthly level

The most accurate capture period for Start of financial year is by taking the month before the calculations are done EOM fo start of year

TashanTheEarl_0-1674057266526.png

 

Membership Monthly Sample

CategoryCountryFinance RegionFYFY Year sortGenderISO 2Membership GradeMembership GroupMembersMemberOrganisationTypeMonthYearPreviousFYRegionReporting Period EndReporting Period StartStatus Sub GroupStudyMethodUK Country
JoinersAfghanistanSINGAPOREFY 1515 AFAffiliateAffiliate20 201503FY 14Other Regions31/03/2015 00:0001/03/2015 00:00 No Data
JoinersAfghanistanSINGAPOREFY 1515 AFCertificateStudent & Part Qualified406 201412FY 14Other Regions31/12/2014 00:0001/12/2014 00:00 No Data
JoinersAfghanistanSINGAPOREFY 1515 AFCertificateStudent & Part Qualified20 201503FY 14Other Regions31/03/2015 00:0001/03/2015 00:00 No Data

 

Date Table

DateDateKeyDayDayNameExam SeriesFYFY SortFY_PeriodIsWeekDayLast YearMonthMonth SOMonthNameMonthYearPeriodQuarterShortMonthNameStart of FYStart of Last FYStart of MonthYear
01/11/2014 00:00201411011Saturday01/11/2014 00:00FY 1515201501TRUE01/11/2013 00:00111NovemberNov-142014111Nov01/11/2014 00:0001/11/2013 00:0001/11/2014 00:002014
02/11/2014 00:00201411022Sunday01/11/2014 00:00FY 1515201501TRUE02/11/2013 00:00111NovemberNov-142014111Nov01/11/2014 00:0001/11/2013 00:0001/11/2014 00:002014
03/11/2014 00:00201411033Monday01/11/2014 00:00FY 1515201501TRUE03/11/2013 00:00111NovemberNov-142014111Nov01/11/2014 00:0001/11/2013 00:0001/11/2014 00:002014
04/11/2014 00:00201411044Tuesday01/11/2014 00:00FY 1515201501TRUE04/11/2013 00:00111NovemberNov-142014111Nov01/11/2014 00:0001/11/2013 00:0001/11/2014 00:002014
05/11/2014 00:00201411055Wednesday01/11/2014 00:00FY 1515201501TRUE05/11/2013 00:00111NovemberNov-142014111Nov01/11/2014 00:0001/11/2013 00:0001/11/2014 00:002014



 

2 REPLIES 2
amitchandak
Super User
Super User

@TashanTheEarl , Firstnonblankvalue can help

example

calculate(Firstnonblankvalue (Table[Date], Sum(Table[Values]), filter(all(Date), Date[Year] = max(date[Year]) ) )

 

Power Bi DAX Functions openingbalancemonth, openingbalancequarter, openingbalanceyear, firstnonblankvalue, and parallelperiod.Opening Stock, First value of period: https://youtu.be/6lzYOXI5wfo

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello Amitchandak,

 

Thank you so much for your response I've not reached a solution yet but this has defintely been a step in the right direction compared to previous attempts. It set me on the path of time intelligence functions I didn't know exists but I couldn't get OPENINGYEARBALANCE working.

I've ended up with the below formula which is giving the correct output but looks strange when you put it along side another measure.

 

Any further guidance would be greatly appreciated

 

StartOfFy = CALCULATE([1.0 - Members]
                            ,STARTOFMONTH(
                                            PREVIOUSDAY(
                                                        STARTOFYEAR('Date Table'[Date]
                                                                ,"31-10"
))))

TashanTheEarl_0-1674213848613.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.