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
manoplaeli
Helper II
Helper II

Relationship and budget VS actual with yearly result

What I want to build is the Budget vs Actual report by year. When user click on the project, I want to show only avaible year. And then user can look at the report seperate by year. right now I can not create relationship that allow this filter to happen. Whe filter works, the actual value is not correct. Right now what ever year I click, the total actual is still the same and it is not correct value. I know that the issue is comming from how the relationship was build but I just don't know the workaround get around to get it works.

 

Link below are the Excel and PBIX file for better understanding of the issue.

 

https://drive.google.com/open?id=1BibPLHxQn4wOxbR1LLnMUDQGVo2i9hDw

 

 Many thanks

1 ACCEPTED SOLUTION

Hi @manoplaeli,

 

Seemed that your original calendar table didn't work in my side, So here I recreated another new calendar table and create a calculated column based on that.

 

New calendar = CALENDARAUTO()
Year = YEAR('New calendar'[Date])

Then I created the relationship between tables like this.

 

rela.PNG

 

Here is the reslult for your reference.

 

re.PNG

 

For more details, please check the pbix as attached.

 

https://www.dropbox.com/s/d84xleb91oq1reu/Relationship%20and%20budget%20VS%20actual%20with%20yearly%...

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

6 REPLIES 6
v-frfei-msft
Community Support
Community Support

Hi @manoplaeli,

 

Based on my test, we can change your relationship like this and filter the visuals based on the Year in Calendar table.

 

1.png

 

Here is the result as we excepted.

 

2.png

For more details, please check the pbix as attached.

 

https://www.dropbox.com/s/vjxccag0j5u8sfs/TEST.pbix?dl=0

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi Frank,

 

The filter works but the spending value is not showing correctly. every project has spending in all category

 

Many thanks,

Hi @manoplaeli,

 

I created the relationship between Calendar and Expenditure based on Year like this, then we can get the result as we excepted.

 

222.PNGCapture.PNG

 

For more details, please check the pbix as attached.

 

https://www.dropbox.com/s/d84xleb91oq1reu/Relationship%20and%20budget%20VS%20actual%20with%20yearly%...

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi Frank

 

Capture.PNG

 

The left hand side is budget and the right is expenditure. It is not showing correctly. 

 

You can find the excel file below 

 

https://drive.google.com/open?id=1BibPLHxQn4wOxbR1LLnMUDQGVo2i9hDw

 

Best,

Hi @manoplaeli,

 

Seemed that your original calendar table didn't work in my side, So here I recreated another new calendar table and create a calculated column based on that.

 

New calendar = CALENDARAUTO()
Year = YEAR('New calendar'[Date])

Then I created the relationship between tables like this.

 

rela.PNG

 

Here is the reslult for your reference.

 

re.PNG

 

For more details, please check the pbix as attached.

 

https://www.dropbox.com/s/d84xleb91oq1reu/Relationship%20and%20budget%20VS%20actual%20with%20yearly%...

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi Frank,

 

That works perfectly!

 

Thank  you very much

 

Manop

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.