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
Anonymous
Not applicable

Last 24 hrs data shown in a card

Please your help with a proper solution to show data from the last 24 hrs and them, count amount of rows and put it into a card. 

 

Current scenario:

I have a column called "Time" with Date/Time/TimeZone format as the one shown bellow:

 

 

Capture.PNG

 

What is needed is to count how many rows are present for the last 24 hrs throughout a measure and them, display the amount of rows using a card. 

 

Can someone explain how to implement this in a dashboard card? 

1 REPLY 1
Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous ,

Timer = SUMX(_Time,IF(_Time[Time]>NOW()-1 && _Time[Time]<= NOW(),1,0))

My table name is _Time. Create a measure like this. Select a card, and drag the measure to the card. Here is my pbixTime 


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

timer.PNG

r


timer2.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.