The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi there,
Forgive me if this has already been solved but I cant find a solve that is working for me.
I have a table of date times like this:
Start Time | Time of Max |
01/01/2020 00.00 | |
01/01/2020 03.00 | |
01/01/2020 06.00 | |
01/01/2020 09.00 | |
01/01/2020 12.00 | 01/01/2020 12.00 |
01/01/2020 15.00 | |
01/01/2020 18.00 | |
01/01/2020 21.00 | |
02/01/2020 00.00 | |
02/01/2020 00.00 | |
02/01/2020 03.00 | |
02/01/2020 06.00 | |
02/01/2020 09.00 | |
02/01/2020 12.00 | |
02/01/2020 15.00 | |
02/01/2020 18.00 | |
02/01/2020 21.00 | 02/01/2020 21.00 |
03/01/2020 00.00 |
But I want it to add a column like this:
Start Time | Time of Max | Time of Max (2) |
01/01/2020 00.00 | ||
01/01/2020 03.00 | ||
01/01/2020 06.00 | ||
01/01/2020 09.00 | ||
01/01/2020 12.00 | 01/01/2020 12.00 | 01/01/2020 12.00 |
01/01/2020 15.00 | 01/01/2020 12.00 | |
01/01/2020 18.00 | 01/01/2020 12.00 | |
01/01/2020 21.00 | 01/01/2020 12.00 | |
02/01/2020 00.00 | 01/01/2020 12.00 | |
02/01/2020 00.00 | 01/01/2020 12.00 | |
02/01/2020 03.00 | 01/01/2020 12.00 | |
02/01/2020 06.00 | 01/01/2020 12.00 | |
02/01/2020 09.00 | 01/01/2020 12.00 | |
02/01/2020 12.00 | 01/01/2020 12.00 | |
02/01/2020 15.00 | 01/01/2020 12.00 | |
02/01/2020 18.00 | 01/01/2020 12.00 | |
02/01/2020 21.00 | 02/01/2020 21.00 | 02/01/2020 21.00 |
03/01/2020 00.00 | 02/01/2020 21.00 |
I need it to be a DAX query too.
You likely don't need to do this in DAX. Power Query has a "Fill Down" transformation that can do that for you.
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |