Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
tmears
Helper III
Helper III

Hourly Rate

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

1 REPLY 1
v-huizhn-msft
Microsoft Employee
Microsoft Employee

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.