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.
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 |
---|---|
24 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |