cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AlexandrVPat
Frequent Visitor

Transformed table with new rows

Good day everyone.
I need to make transformed table using data from next table: 

IDLE_IDSTART_DTSTART_TIMEEND_DTEND_TIMEIDLE_TYPE
12285109.09.201905:57:0001.10.201909:00:00Planned
12311101.10.201909:30:0002.10.201917:00:00Planned


I need to make visualization like this (abridged example):

IDLE_IDSTART_DTSTART_TIMEEND_DTEND_TIMEIDLE_TYPE
12285109.09.201905:57:0009.09.201924:00:00Planned
12285110.09.201900:00:0010.09.201924:00:00Planned
12285111.09.201900:00:0011.09.201924:00:00Planned
12285112.09.201900:00:0012.09.201924:00:00Planned
12285113.09.201900:00:0013.09.201924:00:00Planned
12285114.09.201900:00:0014.09.201924:00:00Planned
12285115.09.201900:00:0015.09.201924:00:00Planned
12285125.09.201900:00:0025.09.201924:00:00Planned
12285126.09.201900:00:0026.09.201924:00:00Planned
12285127.09.201900:00:0027.09.201924:00:00Planned
12285128.09.201900:00:0028.09.201924:00:00Planned
12285129.09.201900:00:0029.09.201924:00:00Planned
12285130.09.201900:00:0030.09.201924:00:00Planned
12285101.10.201900:00:0001.10.201909:00:00Planned
12311101.10.201909:30:0001.10.201924:00:00Planned
12311102.10.201900:00:0002.10.201917:00:00Planned


I know, it looks really strange, but i need this visualization for easy count of idle for each day. Also first table was formed in DirectQuery, and i need not to change initial table.
Any suggestions come useful.
Best regards
Alexandr

2 REPLIES 2
amitchandak
Super User
Super User

@AlexandrVPat , Not very clear. But refer if my blog can help

#POWERBI: How to divide/distribute values between start date or end date or count days across months/days: https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...

 

 

 

This is link to .pbix example of data from my existing table

https://arcelormittal-my.sharepoint.com/:u:/g/personal/alexandrvpat_arcelormittal_com1/ETL8_ueG8zlMs... 

As you can see in .pbix file, i understood how to use your method, but main problem is that i can't use measure day for count of idle time.
Please check correctness of my actions in this file.
Best regards, Alexandr

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors
Top Kudoed Authors