The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |