Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have below calculated dimension for "SalesDate" in straight table:
Aggr(Only( [SalesDate]={"=[SalesDate]<=ReportingDate"}>}[SalesDate]),
[SalesDate])...In this calculated dimension I want to bypass Region field, I have done it as shown below
Aggr({<[Region]=>} Only( [SalesDate]={"=[SalesDate]<=ReportingDate"},[Region]=>}[SalesDate]),
[SalesDate])
The expression syntax is OK but in the Region filter is still getting applied on the data.
I want to know is there any other way of bypassing the region field in order to avoid its selection on the data.
Aatish
Only({1<[SalesDate]={"<=$(=ReportingDate)"}>} [SalesDate])
or
Aggr(Only({1<[SalesDate]={"<=$(=ReportingDate)"}>} [SalesDate]), [SalesDate])
Hi, How about an expression just like this and then using [SalesDate] as the dimension?
AggregationFunction ({$<[Region]=, [SalesDate]={"<=$(=ReportingDate)"}>} Measure)
Using only on the top of my expression wont allow the table to populat data as it is a date field used as dimension
this is the error , since it is a calculated dimn so aggr function like only() it is not allowing
Hi, How about an expression just like this and then using [SalesDate] as the dimension?
AggregationFunction ({$<[Region]=, [SalesDate]={"<=$(=ReportingDate)"}>} Measure)
I will get back to you
Hi,
You mean adding another expression with aggregation function and then using SalesDate as a dimension?
Aatish
Something like.
Sum({$<[Region]=, [SalesDate]={"<=$(=ReportingDate)"}>} Sales)
I cant use sum function since the field is Date field and not any numeric field.
If you want to show the dates as measure, then maybe something like this.
Only({$<[Region]=, [SalesDate]={"<=$(=ReportingDate)"}>} [Date field])