ssas - Next available Date -
i have tubular model has standard star schema on dim date table there column flags uk holidays not included date if key chooses date has been flagged next availble date don't have access database build function ive seen others
could suggest dax or method of doing
thanks in advance
you can create calculated column next working datekey
if date flagged non working date. in case date not flagged column contains datekey
value.
use dax expression in calculated column:
= if ( [isdefaultcalendarnonworkingday] = 1, calculate ( min ( [datekey] ), filter ( dimdate, [datekey] > earlier ( [datekey] ) && [isdefaultcalendarnonworkingday] = 0 ) ), [datekey] )
i've recreated dimdate table sample data:
let me know if helps.
Comments
Post a Comment