Transactions:
SQL SELECT
trn_uid,
trn_no,
trn_calendarDate,
trn_fiscalDate
FROM transact;
Temp:
load
max(trn_calendarDate) as maxCDate
,max(trn_FiscalDate) as maxFDate
resident Transactions;
LET vMaxCal = peek(‘maxCDate’);
LET vMaxFiscal = peek(‘maxFDate’);
drop table Temp;



![[PowerBI][DAX] – DISTINCTCOUNT() dax powerbi fonction distinctcount](https://i0.wp.com/mybicoach.bwabwanet.fr/wp-content/uploads/2020/03/powerbi-dax-distinctcount.png?resize=218%2C150)


![[PowerBI][DAX] – Comment compter le nombre de ligne d’une table ?](https://i2.wp.com/mybicoach.bwabwanet.fr/wp-content/uploads/2020/01/powerbi-dax-countrows-logo-1.png?resize=100%2C70)