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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
rohazi
Frequent Visitor

how to get different value between hour

please help how to get diff value for hour by hour. 

 

rohazi_0-1673096766945.png

 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @rohazi 

try to add a column like this:

Diff2 = 
VAR _time = [Time]
VAR _date = [Date]
VAR _table =
FILTER(TableName, TableName[Date] = _date)
VAR _maxtime =
MINX(
    FILTER(
       _table,
        TableName[Time] > _time
    ),
    TableName[Time]
)
VAR _totalpre=
MAXX(
    FILTER(
       _table,
        TableName[Time] =_maxtime
    ),
    TableName[total]
)
RETURN
[Total] - _totalpre

 

it worked like this:

FreemanZ_0-1673100796220.png

View solution in original post

6 REPLIES 6
FreemanZ
Super User
Super User

hi @rohazi 

try to add a column like this:

Diff2 = 
VAR _time = [Time]
VAR _date = [Date]
VAR _table =
FILTER(TableName, TableName[Date] = _date)
VAR _maxtime =
MINX(
    FILTER(
       _table,
        TableName[Time] > _time
    ),
    TableName[Time]
)
VAR _totalpre=
MAXX(
    FILTER(
       _table,
        TableName[Time] =_maxtime
    ),
    TableName[total]
)
RETURN
[Total] - _totalpre

 

it worked like this:

FreemanZ_0-1673100796220.png

tq @FreemanZ  . it's working ..thanks for your help.

rohazi
Frequent Visitor

69706 -58277

rohazi
Frequent Visitor

60706 - 58277

FreemanZ
Super User
Super User

hi @rohazi 

58277 - 69706?

yes

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.