Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all
again i have problem in understanding the following dax expression.
Extended date =
VAR start_date = ErrorLogs[Start Date]
VAR end_date = ErrorLogs[End Date]
VAR _index = ErrorLogs[Index]
VAR a =
MAXX ( FILTER (
ErrorLogs,
( ErrorLogs[End Date] >= start_date
&& ErrorLogs[End Date] <= end_date )
&& [Index] <> _index
),
[End Date]
)
VAR b =
LOOKUPVALUE ( ErrorLogs[Index], ErrorLogs[End Date], a )
RETURN
IF ( b < ErrorLogs[Index],a )
I have problem in interpreting the Filter Expression.
Here is picture of my data.
from my understanding it works like the following.
for first row with ID 2874029 it takes EndDate 3/29/2019 7:11:12 AM and check is there any value greater than this exist in virtual table in column StartDate & it also checks that is there any value less than this in virtual table in column EndDate, with a diffrent index other than that row.
based on my understanding the second row with a ID 2874029 has to retrun me data with value 3/29/2019 7:03:27AM in column Extended Date, but it is not so I think i am worng with my understanding.
some how i am unable to understand this logc how i have to interpret.
Please share some explantation in simple languare how i can interpert this logic.
the second thing i would like to know that is there any possibility to get a table with a applied filter for one ID and checks what it returns to me so that I can intrepret those value and see how it works. I mean anyway to debug and check for the first row what it returns after applying a filter expression.
Regads,
tar
Thanks for explaining but still not clear to me.
Just explain me how should i have to intrepet the expression in filter.
for an ID 2874029 why i am getting extended date value and why not for ID 2874024.
for.ex if i had below expression in filter
FILTER (
ErrorLogs,
( ErrorLogs[TimeDiff]>200 )
&& [Index] <> _index
)
than for each ID it compare the TimeDiff value is greater than 200 . so for this case filter return me for a First ID value 3 as an output because 1241 , 205 and 286 is the only value greater than 200 for first ID.
and it compare like this for all other rows.
How it works for this filter expression.
thanks for taking your time.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
42 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
39 | |
33 | |
18 | |
17 |