The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 | |
8 | |
8 | |
7 |
User | Count |
---|---|
21 | |
20 | |
11 | |
10 | |
7 |