Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Good community!!!
I am trying to create a MEASURE or COLUMN to display on a card the average value of the last hour. I know, that in a table organizing the hierarchies of Date and Time I can show it. But I want to show the value directly on a card, without the need to apply filters, something like the average value of the last hour in real time.
In the following table I specify the following data:
Apply an averange and I arrive at the expected result by applying from a filter panel the selection of the date and time. But the idea is that by default and without applying filters the card can show me the values.
Those would be the expected values, but without having to apply filters.
Currently I am only applying an AVERANGE, but I do not know how to specify that I calculate the last minute value. Taking as a sample the four registers hs.
Solved! Go to Solution.
Hi @Syndicate_Admin ,
According to your description, I download your sample, here's my solution.
Create a measure.
Promedio_Nivel =
CALCULATE (
AVERAGE ( muestra[Nivel_1] ),
FILTER (
ALL ( 'muestra' ),
HOUR ( 'muestra'[Fecha_Hora] )
= MAXX ( ALL ( 'muestra' ), HOUR ( 'muestra'[Fecha_Hora] ) )
)
)
Get the correct result without a slicer.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.
Hi @Syndicate_Admin ,
According to your description, I download your sample, here's my solution.
Create a measure.
Promedio_Nivel =
CALCULATE (
AVERAGE ( muestra[Nivel_1] ),
FILTER (
ALL ( 'muestra' ),
HOUR ( 'muestra'[Fecha_Hora] )
= MAXX ( ALL ( 'muestra' ), HOUR ( 'muestra'[Fecha_Hora] ) )
)
)
Get the correct result without a slicer.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.
@Syndicate_Admin , if you have datetime column, you can create a measure like
calculate( Count(Table[Value]), filter(Table, Table[Datetime] >= now() -time(1,0,0) && Table[Datetime] < now() ) )
Dear.
Thanks for the help. But it didn't work.
The expression
Nose if I should put the YTD.
I await comments. Best regards.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 17 | |
| 11 |
| User | Count |
|---|---|
| 55 | |
| 53 | |
| 41 | |
| 36 | |
| 32 |