Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Power BI community, I need your insights..
I have data coming from a CRM, they are tickets, open or closed. Everytime I refresh, some of the open tickets besome closed obviously. But in the analysis I run, some of them are directly linked to the open tickets. So at each refresh, I get the new numbers, but is there a way to store the previous record (average inactivity time on open tickets per exemple), so I can use it to see the evolution ?
Numbers to make it simple :
On Feb. 28 :
Closed tickets : 35
Open tickets : 12
Average inactivity days on open tickets : 4,7
On March.1 :
Closed tickets : 40
Open tickets : 8
Average inactivity days on open tickets : 5,3
The closed tickets number is irrelevant - but once the tickets have a closure date, the open tickets fall into this status.
Thanks per advance for your help !
Solved! Go to Solution.
Ideally you take snapshots with some ETL such as SSIS or scheduled program.
If this is not possibel you could do it in PowerbI using R.
An R transformation could snap the data and save as a file, you can then load a folder of files and use the filename to to ensure you know when it was snapped.
# 'dataset' holds the input data for this script filename <- cat("C:\\temp\\myFile", format(Sys.time(), "%Y%m%d_%H%M"), ".csv", sep="") #write.csv(dataset, file = filename ) output <- dataset
https://docs.microsoft.com/en-us/power-bi/desktop-r-in-query-editor
There is a data modeling concept called "Slowly Changing Dimension" . This is a data modeling technique that allows to manage current and historical data over time. You will need to have start and end timestamps of yours tickets in order to implement this approach.
N -
Ideally you take snapshots with some ETL such as SSIS or scheduled program.
If this is not possibel you could do it in PowerbI using R.
An R transformation could snap the data and save as a file, you can then load a folder of files and use the filename to to ensure you know when it was snapped.
# 'dataset' holds the input data for this script filename <- cat("C:\\temp\\myFile", format(Sys.time(), "%Y%m%d_%H%M"), ".csv", sep="") #write.csv(dataset, file = filename ) output <- dataset
https://docs.microsoft.com/en-us/power-bi/desktop-r-in-query-editor
Thanks for your answer @stretcharm, I am going to dig further on this, this looks like it could work in my case,
And thanks @nickchobotar, I have found some more info on this, and that is definitely an interesting approach!
Hi @mperrot,
If you think the replies are useful, please mark them as answer. So that more people will learn new things here. If you haven't, please feel free to ask.
Thanks,
Angelia
User | Count |
---|---|
87 | |
82 | |
42 | |
40 | |
35 |