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
DanCasSan
Helper V
Helper V

Add new records depending on a date

Dear community,

 

I hope you are well, I have a query, is it possible to add data to my table if you don't have a date?

 

In this image, as you will notice, I have added the rows that have the value "ADDED" which were not in the original table (I attach a model file).

 

Capture2.JPG

 

In my data, the records that are not found can be identified with the missing dates, in addition those that are added have to meet certain characteristics:

 

  1. If a record is added, it must be validated how many different data it has in the NLGORT field in the entire month of the evaluated date
  2. The values ​​that must go in the STOKVAL and STOKALM fields must be those of the next existing date, for example, suppose I have information for the 02/02/20 date but I have no information for 02/01/20, so the values ​​of the date of 02/02/20 must be taken
  3. The ENTALM, SALAM and STOKFINAL fields must be 0
  4. The other fields must have the same information, repeat

I hope this request has been made explicit and possible.

 

I am attentive and very grateful for your comments.

 

Regards,

Daniel Castillo

 

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

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi , @DanCasSan 

Sorry, could you please upload another copy of the sample data on OneDrive ? 

 

Best Regards,
Community Support Team _ Eason

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.