Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
MintuBaruah
Helper III
Helper III

Time Series

Hello All,

 

I have the data as shown in Table 1: 

Table1:

Time Date Balance
07:03:00 PM 4/27/2021 30142.78
06:28:00 PM 4/27/2021 33710.19
08:50:00 PM 4/14/2021 51329.08
05:44:00 PM 4/6/2021 79966.12
10:00:00 PM 5/28/2021 94621.27
05:15:00 PM 5/27/2021 94646.27
05:15:00 PM 5/27/2021 94681.27
01:35:00 PM 5/27/2021 94861.27
01:35:00 PM 5/27/2021 94896.27
03:41:00 PM 5/25/2021 101616.27
10:03:00 PM 5/18/2021 1616.27

 

The output should show the columns as Bal-start of the day and Bal-end of the day.

Output Table: 

Date Bal-Start of day Bal-End of day
4/27/2021 33710.19 30142.78
4/14/2021 51329.08 51329.08
4/6/2021 79966.12 79966.12
5/28/2021 94621.27 94621.27
5/27/2021 94861.27 94646.27
5/25/2021 101616.27 101616.27
5/18/2021 1616.27 1616.27

 

Please help resolve this query.

 

Thank you

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@MintuBaruah , Try two measures like

 

Bal-Start of day= firstnonblankvalue(Table[time], min(Table[Balance]))

Bal-End of day = lastnonblankvalue(Table[time], min(Table[Balance]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

v-yalanwu-msft
Community Support
Community Support

Hi, @MintuBaruah ;

You also could create a measure as follows:

Start =
VAR _min =CALCULATE ( MIN ( [Time] ), ALLEXCEPT ( 'Table', 'Table'[Date] ) )
RETURN
    CALCULATE (MIN ( [Balance] ), FILTER ( ALLEXCEPT ( 'Table', 'Table'[Date] ), [Time] = _min ))
End =
VAR _max =CALCULATE ( MAX ( [Time] ), ALLEXCEPT ( 'Table', 'Table'[Date] ) )
RETURN
    CALCULATE (
        MIN ( [Balance] ),
        FILTER ( ALLEXCEPT ( 'Table', 'Table'[Date] ), [Time] = _max ))

The final output is shown below:

vyalanwumsft_0-1629252805425.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @MintuBaruah ;

You also could create a measure as follows:

Start =
VAR _min =CALCULATE ( MIN ( [Time] ), ALLEXCEPT ( 'Table', 'Table'[Date] ) )
RETURN
    CALCULATE (MIN ( [Balance] ), FILTER ( ALLEXCEPT ( 'Table', 'Table'[Date] ), [Time] = _min ))
End =
VAR _max =CALCULATE ( MAX ( [Time] ), ALLEXCEPT ( 'Table', 'Table'[Date] ) )
RETURN
    CALCULATE (
        MIN ( [Balance] ),
        FILTER ( ALLEXCEPT ( 'Table', 'Table'[Date] ), [Time] = _max ))

The final output is shown below:

vyalanwumsft_0-1629252805425.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@MintuBaruah , Try two measures like

 

Bal-Start of day= firstnonblankvalue(Table[time], min(Table[Balance]))

Bal-End of day = lastnonblankvalue(Table[time], min(Table[Balance]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.