The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
apptime adj = if [academic year]="2016-2017" then Date.AddDays([apptime],1095) else if [academic year]="2017-2018" then Date.AddDays([apptime],730) else if [academic year]="2018-2019" then Date.AddDays([apptime],365) else [apptime]
Newest Date = MAX(application_count[apptime])
Then, filter application counts before the current time from previous years:
Total Apps Adj = if(application_count[apptime adj]<application_count[Newest Date],application_count[Total Apps],BLANK())
This returns the desired result, but the totals are off. Thanks in advance for you help.
You may use ISINSCOPE to add a measure.
Measure 2 =
IF (
ISINSCOPE ( 'Dates Adj'[Month Year] ),
SUM ( application_count[Total Apps Adj] ),
SUM ( application_count[Total Apps] )
)
@v-chuncz-msft thanks for your help. I applied your solution, but it did not change anything.
Could you show me the solution in the actual .pbix file?