Something like this should work:
TOTAL(
IF ( _make_timestamp( extract( year, current_date ), 1, 1 ) <= DateColumn
and
DateColumn <= _add_days( current_date, - 1 ) )
THEN ( ValueColumn )
ELSE ( null )
)
------------------------------
Milan Milovanovic
------------------------------
Original Message:
Sent: Thu June 01, 2023 03:11 PM
From: Kayed Chehade
Subject: DAX measure to Cognos calculation
Ventes AAD =
CALCULATE([Ventes PlageDate],
DATESBETWEEN(dim_Calendrier[Date],
DATE(YEAR(TODAY()), 1, 1),
DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY()))-1))
** Ventes PlageDate = SUM(fact_Ventes[TOTAL_AMOUNT])
how to recreate this in a cognos calculation
-Kayed
------------------------------
Kayed Chehade
------------------------------