Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello, I am not sure whats going wrong here since this seems a very simple topic.
I have an excel table with approx 7000 entries showing log errors on a daily basis, so e.g.
Date | Error
01.08.2024 | Error 1
01.08.2024 | Error 2
02.08.2024 | Error 1
02.08.2024 | Error 3
etc.
Now I want to simply calculate how many errors I have on the last date entered in that file.
My query:
Solved! Go to Solution.
Hi @andi2333 -Your DAX query is almost correct, but the issue lies in how you're trying to filter the data to only count errors on the last date
please use the below
VAR_LastDate = MAX('LogErrors'[Date])
VAR_LogErrorsLastDay = CALCULATE(
COUNT('LogErrors'[Error]),
'LogErrors'[Date] = VAR_LastDate
)
RETURN VAR_LogErrorsLastDay
Hope it works.
Proud to be a Super User! | |
Hi @andi2333 -Your DAX query is almost correct, but the issue lies in how you're trying to filter the data to only count errors on the last date
please use the below
VAR_LastDate = MAX('LogErrors'[Date])
VAR_LogErrorsLastDay = CALCULATE(
COUNT('LogErrors'[Error]),
'LogErrors'[Date] = VAR_LastDate
)
RETURN VAR_LogErrorsLastDay
Hope it works.
Proud to be a Super User! | |
User | Count |
---|---|
84 | |
78 | |
71 | |
48 | |
42 |
User | Count |
---|---|
111 | |
56 | |
50 | |
41 | |
40 |