The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
can someone help me converting my dax code to Custom column/M code in power query
Time =
Suppose the data is sorted by Rank
NewStep=Table.AddColumn(YourTable,"Time",Function.ScalarVector(Value.Type(each _),(t)=>let a=List.Buffer(YourTable[#"TableWithRank.ACTION_DATE"]) in List.Transform(List.Positions(a),each if _=0 then null else Duration.TotalMinutes(a{_}-a{_-1})))