Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everybody,
I want to know if it's possible to create a column starting at 0 and increasing by one unit every time the value one occurs in another column. This is what I want to obtain :
I'd like to have an answer using DAX and not Power Query because nb is already a column I created using some functions in DAX (LOOKUPVALUE for example).
Solved! Go to Solution.
@Anonymous
So you can sum NB for all indices before current row..right?
= CALCULATE ( SUM ( table1[Nb] ), FILTER ( Table1, [Index] <= EARLIER ( [Index] ) ) )
@Anonymous
So you can sum NB for all indices before current row..right?
= CALCULATE ( SUM ( table1[Nb] ), FILTER ( Table1, [Index] <= EARLIER ( [Index] ) ) )
Thanks ! That was exactly what I wanted, looks really easy ahah but I'm just starting to dive into Power Bi !
This query suceed on the little table I gave you but I'm working with a table of 50 000 rows and I'm facing a memory problem.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |