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
FredDeb
Regular Visitor

Oldest date from column as Column header

Hi, 

 

On a daily base I have e reporting file with the number of planned installs for the next 30 days.

That 30 day window changes every day (+1 day).

I would like to import that data from every day in a powerbi report.

I would like to see the evolution of the planned installs day by day.

 

For example:

The daily file of 05/01/2023 tells me that there are 500 installs planned for 20/01/2023 and 510 for 21/01/2023

The daily file of 06/01/2023 tells me that there are 480 installs planned for 20/01/2023 and 520 for 21/01/2023

In one way or another that should create some kind of waterfall table. But I have no idea how to visualize that in PowerBi.

 

I have this kind of dataset for the moment: 

FredDeb_1-1672840088977.png

 

From "column2" until the last column, the column header should be the oldest date in that specific column.

This is what my final table should look like:

FredDeb_2-1672840812242.png

 

Who can help me?

Thanks in advance.

 

1 ACCEPTED SOLUTION

I filtered by date so could use contains "/" to make the date table.  Then I copied the query and filtered by does not contain "/" to get the values, then I merged by date AND column number (attribute) to get the final table.

View solution in original post

3 REPLIES 3
ToffeeMarkWork
Frequent Visitor

I think the installation date should be a column  So you should have reporting date, and installation date as columns, then a values column.  that would allow you to make your table as a pivot table in excel or power bi.  

I was able to recreate your desired table by taking the data unpivoting, filtering on dates first to get the date of each column, then filtering on value to get the value of each column, then merged date&column number from the first tabel with date & column number from the second table.  Load the data then make a pivot table with report date as rows, instalation date as columns and values as values.

 

ToffeeMarkWork_0-1672849391282.png

I only did 10/10/2022 and 13/10/2022 but you could filter dates from values by contains "/" or does not contain "/" .  There may be a more elegant solution but I ended up with 

 

ToffeeMarkWork_1-1672849557203.png

 

Be better if the source data was set up differently tbh

 

Hi @ToffeeMarkWork , 

 

Thanks for your reply. This helps. When I do the unpivot of the columns, I get: 

FredDeb_0-1672908878991.png

How do I get the values and the dates from the value column in 2 separate columns?

Thanks in advance...

I filtered by date so could use contains "/" to make the date table.  Then I copied the query and filtered by does not contain "/" to get the values, then I merged by date AND column number (attribute) to get the final table.

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.

Top Solution Authors
Top Kudoed Authors