Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Column = CALCULATE ( MAX ( Table1[date] ), FILTER ( ALL ( Table1 ), EARLIER ( Table1[product ID] ) = Table1[product ID] && EARLIER ( Table1[date] ) <= Table1[date] && EARLIER ( Table1[Index] ) <> Table1[Index] ) )
Hi,
I have this DAX formula that blows up the server (13GB RAM) on a 400K rows database and I'd like to have it in M language and copy it in the query editor to test if it works faster or being less RAM consuming. Can you please help me?
Not an expert on Power Query and doubt it would have much better performance than DAX. As you're using database, if SQL Server, try an equivalent query as below.
SELECT * FROM table1 t1 CROSS APPLY ( SELECT max([date]) f FROM table1 t2 WHERE t1.[product ID] = t2.[product ID] AND t1.[Index] <> t2.[Index] AND t1.[date] <= t2.[date] ) ca
User | Count |
---|---|
94 | |
78 | |
73 | |
63 | |
60 |
User | Count |
---|---|
108 | |
101 | |
77 | |
63 | |
61 |