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
EBGAL
Helper III
Helper III

Power Query Align Reporting Timeframes

Hi,

 

I have this table:

MonthYearMaterialIdPrice

Jan-18

A2
Feb-18A3
Jun-18A4
Jun-18B2
Aug-18B4

 

I want to create the below table

Jan-18A2
Feb-18A3
Mar-18A4
Apr-18A4
May-18A4
Jun-18A4
Jul-18A4
Aug-18A4
Jan-18B2
Feb-18B2
Mar-18B2
Apr-18B2
May-18B2
Jun-18B2
Jul-18B4
Aug-18B4

 

The idea is to have the earliest and all consequitive months until the latest month present in the dataset for each single material. Whenever a value for the price is not available (e.g., Jan to May for Material B) it should look up to the next available value and when there is no next value (e.g., MaterialId = A, months Jul and Aug) then look up the last available value.

 

Thanks

Evan

1 REPLY 1
v-henryk-mstf
Community Support
Community Support

Hi @EBGAL ,

 

It doesn't seem very clear what you need, can you further describe your business requirements and screenshots of the desired outcome?


Looking forward to your reply.


Best Regards,
Henry

 

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.