Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
BIlix
Helper II
Helper II

Using time intelligence within my fact table

Hello community,

 

I encounter some problems with my fact table and its source data.

 

In my Fact table are monthly budget and cost values for different projects.

 

Project A  November 2023 500, December 2023 100 

...

 

The source data are excel exports which are created on demand and are appended to the fact table. 

From the file name I create a column for the date of the file export, refresh date.

 

Calculations like sameperiodlastyear should be included in my report. 

 

Currently there are multiple and repeating entries for every month, for example when a file export is done twice in a month. The monthly values can differ in the timeframe of a month when data gets updated. 

 

Is there any possibility to use sameperiodlastyear or similiar code with this data model when I want to compare todays data with the data from previous year of the same timeframe?

4 REPLIES 4
BIlix
Helper II
Helper II

BIlix_1-1703843168671.png

 

As you can see, in this example the Actual Value of Project 1 in February changed between the two export dates. Data of a month can sometimes be updated in later months, when invoices are delayed. 

 

The table is connected Many to one to the date table via the Date column

 

lukiz84
Memorable Member
Memorable Member

can you visualize the model?

BIlix
Helper II
Helper II

I already got a date table.

 

But lets say my fact table data consists of 20 exports during the year. Therefore I have several values for the same month, for example January 2023. For 2022 its the same. I need to assure that the data from previous year is from the same refresh date as the data from my recent export. I hope the issue is understandable

lukiz84
Memorable Member
Memorable Member

Not really a powerquery question.

 

But yes, why not?

 

Just create a datetable which has the min and max date from your exports (can be generated during refresh) and connect it to the date column in your "source" data. 

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors