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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Mangnuel
Helper I
Helper I

Import Data valid for all years

Hi PowerBi-World,

 

I need your help, again 😊
I have a lots of Data and everything is filter by either the Date or the Asset Code.

Goal ist to include a Target (expected Budget) for every month. 

This table is valid for each year im working with the Data.
So how can I import the data and tell Powerbi, that it’s valid for every year.

Thanks a lot in Advance

 

Table/Data looks like this

31381b90-b7d8-4ece-ae1d-2020a639ee1a.png

and that's the calendar table

Calendar Table.png

1 ACCEPTED SOLUTION

Hi @Mangnuel.,

 

The issue with filtering happens because your Calendar table filters by full dates, but your ExtendedTargets table currently only links by Year and Month. Since your Calendar has a unique Date for each day, Power BI can’t filter the ExtendedTargets correctly on just Year and Month.

To fix this, you need to create a full date column in your ExtendedTargets table—typically the first day of each target month and then create a relationship between that date and the Calendar’s Date column.

Add this calculated column to your ExtendedTargets table:
TargetDate = DATE(ExtendedTargets[Year], ExtendedTargets[Month], 1)

 

Then in the model view, create a relationship between:

ExtendedTargets[TargetDate] and Calendar[Date]

Make sure this relationship is active and single-directional from Calendar to ExtendedTargets.

This way, filtering by any date, month, or year on the Calendar table will correctly filter the targets as well.

 

I hope my suggestions provided valuable insights. If you have any further questions, don’t hesitate to ask in a follow-up message.
If this post helped, please mark it as "Accept as Solution" so others can benefit as well.

 

Best regards,
Sahasra.

 

View solution in original post

6 REPLIES 6
bhanu_gautam
Super User
Super User

@Mangnuel Create a relationship between the Target table and your Calendar table. The relationship should be based on the month number.

 

To make the target valid for each year, you can create a calculated table that extends the target values for each year in your data.

You can use DAX to create this calculated table

DAX
ExtendedTargets =
CROSSJOIN (
DISTINCT ( 'Calendar'[Year] ),
'Target'
)

 

Create a relationship between the ExtendedTargets table and your Calendar table based on both the Year and Month columns.

Now you can use the targets in your reports. For example, you can create a line chart that shows actual values versus target values over time.

 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thanks @bhanu_gautam ,

 

the created table looks o.k.
The filtering does not work.

Normally I have many different dates within the Datasheets, but the Calendar Tabel only has the date once.
No I have plenty of months and years to filter with.
Doesn't really work

Hi @Mangnuel.,

 

The issue with filtering happens because your Calendar table filters by full dates, but your ExtendedTargets table currently only links by Year and Month. Since your Calendar has a unique Date for each day, Power BI can’t filter the ExtendedTargets correctly on just Year and Month.

To fix this, you need to create a full date column in your ExtendedTargets table—typically the first day of each target month and then create a relationship between that date and the Calendar’s Date column.

Add this calculated column to your ExtendedTargets table:
TargetDate = DATE(ExtendedTargets[Year], ExtendedTargets[Month], 1)

 

Then in the model view, create a relationship between:

ExtendedTargets[TargetDate] and Calendar[Date]

Make sure this relationship is active and single-directional from Calendar to ExtendedTargets.

This way, filtering by any date, month, or year on the Calendar table will correctly filter the targets as well.

 

I hope my suggestions provided valuable insights. If you have any further questions, don’t hesitate to ask in a follow-up message.
If this post helped, please mark it as "Accept as Solution" so others can benefit as well.

 

Best regards,
Sahasra.

 

Hi @Mangnuel,

 

I wanted to check in your situation regarding the issue. Have you resolved it? If you have, please consider marking the reply as Accepted solution and give Kudos that helped you. It would be greatly appreciated by others in the community who may have the same question.

 

Thank you.

Hi @Mangnuel,

 

May I ask if you have gotten this issue resolved?

If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.

 

Thank you.

yes it works, wanted to check the system for a few days.
All the measures, filters and tables work.

 

Thanks a lot

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.