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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
molzmad
Helper I
Helper I

Column reset every day

Hi,
im looking to reset the occupancy 2 column every day based on the timenew column, so everyday the accumulative count restarts from zero, 

i have attached the file :),

any help would be greatly appreciated
https://drive.google.com/file/d/1-ZDrVOJ_hCI2Jzvlze2_7nMibnLSEZgX/view?usp=sharing 

3 REPLIES 3
molzmad
Helper I
Helper I

Do you know how i'd do it as a calculated column and not a measure ? 🙂

amitchandak
Super User
Super User

@molzmad , requested access on the file.

 

Based on assumption

if you have datetime

new column

date =[datetime].date

 

measure

calculate(countrows(Table), filter(allselected), [Datetime]<=max([Datetime]) && [Date] = max([Date]))

https://drive.google.com/file/d/1-ZDrVOJ_hCI2Jzvlze2_7nMibnLSEZgX/view?usp=sharing

here ^ sorry should work now, ill try your suggestion 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.