Forum Discussion
bignadad
Helper I
2 years agoMeasures with no start date
I am working with leger entries and normally I can user the following to filter out the dates I want. ..02/01/2024 This would show me all records with the end date less than Feb 1 2024 Bu...
- 2 years ago
bignadad Best not to use the [Date].[Date] notation. Instead:
Better RT =VAR __Date = MAX(MasterDate[Dates])VAR __Table = FILTER(ALLSELECTED(MasterDate),MasterDate[Dates] <= __Date)RETURNSUMX(__Table,[Invoiced Value])
bignadad
Helper I
2 years agoI tried the calculate type and that worked
Better RT =
CALCULATE(
[Inventory Valuation],
FILTER(
CALCULATETABLE(
SUMMARIZE(
'MasterDate',
'MasterDate'[Dates].[MonthNo],
'MasterDate'[Dates].[Month]
),
ALLSELECTED('MasterDate')
),
ISONORAFTER(
'MasterDate'[Dates].[MonthNo], MAX('MasterDate'[Dates].[MonthNo]), DESC,
'MasterDate'[Dates].[Month], MAX('MasterDate'[Dates].[Month]), DESC
)
)
)