Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
I have a column in my table which is the Date and time, what i am looking to achieve is to hightlight only the last hours data.
I would like to display the hours data in a visual, so if i can flag the last hours data, i could use this on a visual level on a gauge.
I presuem it is a IF statement
Hope this makes sense
Tim
Hi @tmears,
First you'd better create a calculated column to get last hour using the following formulas.
1. You can create a calculated column rank to order all yourtime.
Rank=RANKX(Table, Table[hour],ASC)
2. Use Lookup function to get the last hour date.
Last Hour=LOOKUP(Table[hour], Table[Rank],Table[Rank]-1)
Then you create a gauge, which field will be value level and which one is Target level, do you mind post some sample data and detail information?
Best Regards,
Angelia
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |