The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I'm importing (not DirectQuery) data from a SQL db that I do not controll.
For one of the tables i need to detect, and store the date, when a cell value changes.
For instance, image the table below (just an example).
I want to detect when a car is sold (Status = Sold) and store that date when it was registered as sold(for instance in a calculated column in PowerBI)
How do i manage that? Is it possible to use DAX to query that last import?
Example on a code syntax
IF( Source.Status == "Sold")
IF( OldImported.Status != "Sold)
NewImported.Date = TodaysDate()
ELSE
NewImported.Date = OldImported.Date
ELSE
NewImported.DateSold = ""
Id | Description | Price | Status |
1 | 2011 VW Passat | $ 65 000,00 | Available |
2 | 2012 VW Touran | $ 75 000,00 | Available |
3 | 2008 VW Passat | $ 49 000,00 | Not available |
4 | 2016 VW Passat | $ 83 000,00 | Sold |
5 | 2010 VW Touran | $ 58 000,00 | Available |
6 | 2012 VW Golf | $ 66 000,00 | Not available |
Solved! Go to Solution.
Hey,
unfortunately this is not possible, due to the following.
Basically you are importing the full data from the database.
The OldImported.Date will be calculated during the load, this means you can't use an existing value.
There may be a possibility to circumvent the mentioned above if you are on Power Premium and just load increments, but this woluld also mean that you have identify the increment, the change in the source data.
Here you will an introduction into incremental refresh of Power BI Service:
https://docs.microsoft.com/en-us/power-bi/service-premium-incremental-refresh
Regards,
Tom
Hey,
unfortunately this is not possible, due to the following.
Basically you are importing the full data from the database.
The OldImported.Date will be calculated during the load, this means you can't use an existing value.
There may be a possibility to circumvent the mentioned above if you are on Power Premium and just load increments, but this woluld also mean that you have identify the increment, the change in the source data.
Here you will an introduction into incremental refresh of Power BI Service:
https://docs.microsoft.com/en-us/power-bi/service-premium-incremental-refresh
Regards,
Tom
Hi
I feared that might be the case. Thank you very much for the answer.
Regards,
Pål-Arve Nilsen
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
78 | |
77 | |
43 | |
38 |
User | Count |
---|---|
150 | |
116 | |
66 | |
64 | |
55 |