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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

Creating a separate table that is an aggregate of another that always updates.

So I have a list of users using a particular that is updated every hour, with who is using it and who is online. I have this linked into PowerBi already, but this list only updates every hour, so we cannot see the top users over a period of time (days, weeks, etc.)

 

I am having trouble creating a separate table that basically keeps a count of the users every hour that does not refresh with the original data set. Rather is updates it self and the count of users will increase for every refresh. 

 

Basically for everytime a user appears on the hourly refreshed list, I want to be able to add the count by +1 every time. So for example, if John appeared on the list for every refresh every hour ( for a typically 8 hour work day) he would appear to have an 8 next to his name on the count column in the other table. This would increase everyday or something.

 

Any help would be appreciated, thank you!

 

dbb91244dcabf752382b4757f43c0efd.png45bf3954f7289f7316902e3b4d1f68a6.png

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @Anonymous,

Did these records directly replaced original records or append the records with the same user id into your excel file that stored online?
If you mean the first scenario, current power bi not contains save history records features, please create a new table to record user status change each time you updated.

Build and run flows from Excel 

If you mean the second one, you can add a DateTime field to records the operation time then it is simple to calculate the rolling user count based on that fields. 

Rolling Count =
VAR currDate =
    MAX ( table[Datetime] )
RETURN
    CALCULATE (
        COUNTROWS ( table ),
        FILTER ( ALLSELECTED ( table ), [Datetime] <= currDate ),
        VALUES ( table[UserID] )
    )

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Anonymous,

Did these records directly replaced original records or append the records with the same user id into your excel file that stored online?
If you mean the first scenario, current power bi not contains save history records features, please create a new table to record user status change each time you updated.

Build and run flows from Excel 

If you mean the second one, you can add a DateTime field to records the operation time then it is simple to calculate the rolling user count based on that fields. 

Rolling Count =
VAR currDate =
    MAX ( table[Datetime] )
RETURN
    CALCULATE (
        COUNTROWS ( table ),
        FILTER ( ALLSELECTED ( table ), [Datetime] <= currDate ),
        VALUES ( table[UserID] )
    )

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@Anonymous , refer if this can help

https://blog.crossjoin.co.uk/2020/04/13/keep-the-existing-data-in-your-power-bi-dataset-and-add-new-data-to-it-using-incremental-refresh/

https://www.thebiccountant.com/2017/01/11/incremental-load-in-powerbi-using-dax-union/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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