I have built an expression which contains a nested If Statement and the set analysis within it is driven by what the user selects from the master calender
The first part of the statement works O.K, but it is the second part I am struggling with
I have had some help and someone kindly told me that I needed to following this criteria
There is no set analysis within your expression, this are normal if-functions - but this isn't bad then it is most often easier. What could be wrong: FactDate could be a string or have another format and [Total Wait] couldbe with this conditions not unique. Perhaps you need here more/better conditions or an aggregation like max/avg/only([Total Wait]).