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.
Here's my situation:
I know this can be done using services such as PubNub, or APIs
But is it not possible to have this scenario without the need of any intermediates?
Thank you,
Hayman
Just so I'm clear, you would essentially have data like:
Date,# Opportunities
1/1/2017,15
1/3/2017,19
1/5/2017,13
1/7/2017,14
So, on the 1st of January you had 15 opportunities and then by the 3rd you had a net gain of 4 more opportunities, then on the 5th a net loss of 13 opportunities and so on?
Just making sure I understand the scenario. Effectively, you are more or less "snapshotting" the opportunity count.
Dear @Greg_Deckler
You are completely right, this is the exact scenario I would like to have, but I don't care for the net gain, rather the total changes, whether they are up or down.
Also note, that these dates don't exist in the entity, but it's the date of the count retrieval.
Thank you,
Hayman
So, the problem is that Power BI is not really setup for snapshotting data natively. At least, I'm not aware of a clean, simple solution for it. Tables in the data model are sourced via queries and when the queries update, the entire table updates its data. Hopefully someone else has some better solutions, but the one that I have seen is to essentially call an R script that updates some sort of table or file outside of Power BI in order to record the "snapshot" and then use Power BI to ingest that external table as a table within the data model, so:
Query 1
- Connect to CRM
- Count the number of opportunities
- Call R script to record snapshot
Query 2
- Connect to where snapshots are recorded and import
Dear @Greg_Deckler,
That's a nice approach, but I have few questions here:
Thank you,
Hayman
So, the snapshots could be stored anywhere, I would recommend something like Azure SQL DB because it is super cheap and maintains the cloud aspect of the solution. I first came across this approach on a completely unrelated subject here:
https://powerbi.microsoft.com/en-us/blog/power-bi-azure-ml/
I believe the reference you are looking for is:
http://blog.revolutionanalytics.com/2015/05/using-azure-as-an-r-datasource.html
Oh, and essentially, it would be automated by setting your refresh schedule for your data set in the Service. Every time the query runs it grabs the count and records it into the database.
So, I have to have an intermediate location for saving these snapshots.
Can this location be Dynamics CRM/365 itself, for example can I add these snapshots as a new records in a custom entity, and then use Power BI to retrieve just the records from the new entity?
The reason I'm asking for no intermediate services/APIs is because I'm developing my own solution with some reports, and not all customers would have the luxury of having access to these services, even if they are cheap.
Thank you,
Hayman
Yeah, as long as you can get to the custom entity data through Power BI, it could definitely be CRM itself. I like the Flow idea as well but I was going on the basis of no intermediate stuff, just CRM and Power BI. (Although I guess technically an intermediate location is intermediate stuff...)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |