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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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:
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:
69706 -58277
60706 - 58277
yes
User | Count |
---|---|
15 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |