Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone, hope your are good !
I struggle with some manipulation :
In this i.e i want to transform dynamically this table :
ID | DT_DATE | TP_EVENT |
1 | 01/01/2023 | OPEN |
1 | 14/01/2023 | CLOSE |
1 | 15/01/2023 | RE-OPEN |
1 | 15/01/2023 | EXCEPTION |
1 | 18/01/2023 | CLOSE |
1 | 20/01/2023 | RE-OPEN |
2 | 05/01/2023 | OPEN |
2 | 10/01/2023 | EXCEPTION |
2 | 17/01/2023 | CLOSE |
3 | 17/01/2023 | OPEN |
3 | 25/03/2023 | CLOSE |
To this :
ID | DT_DATE | TP_EVENT |
1 | 01/01/2023 | OPEN |
1 | 02/01/2023 | OPEN |
1 | 03/01/2023 | OPEN |
1 | 04/01/2023 | OPEN |
1 | 05/01/2023 | OPEN |
1 | 06/01/2023 | OPEN |
1 | 07/01/2023 | OPEN |
1 | 08/01/2023 | OPEN |
1 | 09/01/2023 | OPEN |
1 | 10/01/2023 | OPEN |
1 | 11/01/2023 | OPEN |
1 | 12/01/2023 | OPEN |
1 | 13/01/2023 | OPEN |
1 | 14/01/2023 | CLOSE |
1 | 15/01/2023 | RE-OPEN |
1 | 15/01/2023 | EXCEPTION |
1 | 16/01/2023 | EXCEPTION |
1 | 17/01/2023 | EXCEPTION |
1 | 18/01/2023 | CLOSE |
1 | 19/01/2023 | CLOSE |
1 | 20/01/2023 | RE-OPEN |
2 | 05/01/2023 | OPEN |
2 | 06/01/2023 | OPEN |
2 | 07/01/2023 | OPEN |
2 | 08/01/2023 | OPEN |
2 | 09/01/2023 | OPEN |
2 | 10/01/2023 | EXCEPTION |
2 | 11/01/2023 | EXCEPTION |
2 | 12/01/2023 | EXCEPTION |
2 | 13/01/2023 | EXCEPTION |
2 | 14/01/2023 | EXCEPTION |
2 | 15/01/2023 | EXCEPTION |
2 | 16/01/2023 | EXCEPTION |
2 | 17/01/2023 | CLOSE |
3 | 17/01/2023 | OPEN |
3 | 18/01/2023 | OPEN |
3 | 19/01/2023 | OPEN |
3 | 20/01/2023 | OPEN |
3 | 21/01/2023 | OPEN |
3 | 22/01/2023 | OPEN |
3 | 23/01/2023 | OPEN |
3 | 24/01/2023 | OPEN |
3 | 25/03/2023 | CLOSE |
In DAX; power query or even SQL as you prefer, someone can help me ?
Thanks in advance !
BR
Julien
@Ju743878 , Create a date table and join date of date with Dt_date
new table
Date = calendarauto()
then have measures like
calculate(lastnonblankvalue(Table[DT_DATE], max(tbale[TP_EVENT])), filter(all('Date'), 'Date'[Date]<= max('date'[Date])))
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
Hi,
Thanks for your suggestion but unfortunatelly it's not the solution i aking for.
I want to expand the table row from date to next date row by ID, dynamicly...
BR
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |