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

sample enter image description here

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:

enter image description here

let me know if helps.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -