I started my apprenticeships at PowerBI this week and I already have a big challenge for me. The scenario is as follows:
I have a database that has the following information:
Account code
Types of transactions
Date of each transaction
I need to create a fourth column that will return the date of the last transaction for that account code and so I can classify each account in a fifth column as:
A. active account: traded this month;
B. inactive account: did not trade that month;
It probably has a better way, but my head still works a lot like excel.
In Excel I would do it in a single expression:
MAXIF ([3. Date of each transaction]; [1. Account code]; [1. Account code]); where the first two arguments are columns and the third references the cell.
Can you please help me translate this to PowerBI DAX?
Thanks
Yan P.