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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

need help in editing relationship

dear all,

i have 2 data source, named

1) datasheet1

2) datasheet2

both sources has the column "productname", which i linked them in relationship.

I have another calculated column in both sources called "fiscalyear" but i am not able to link them in relationship.

 

How can I get it to show in my table, when a user select the filter for "productname" & "fiscalyear", it will display the total value from datasheet1 & datasheet2.

It is working for the value from “datasheet1” but it show the grand total of all the "fiscalyear" in datasheet2.

Sorry, that I am not able to provide any visual due to the data.

 

1 ACCEPTED SOLUTION

Hi,

Download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

15 REPLIES 15
amitchandak
Super User
Super User

If possible please share a sample pbix file after removing sensitive information.
Thanks

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
venal
Memorable Member
Memorable Member

@Anonymous 

Can you please share the PBIX file with the sample data and share the screenshots for the expected results.

Ashish_Mathur
Super User
Super User

Hi,

The ideal solution in this scenario is create a third Table with a unique list of all Products and create a relationship from ProductName column of Table1 and Table2 to the single column of the third Table (all this can be done in the query editor).  Likewise, from the FiscalYear column in both tables, we should create another column in each table with actual dates.  Then we should build a Calendar Table and create a relationship from the Date columns of Table1 and Table2 to the Date column of the Calendar Table.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur 

hi,

i have created a 3rd table with product name.

but i dont understand the part on fiscial year.

My first 2 table has a customlist of all dates, is that similar to the calendar table? 

how do i go about with it.

would you advice.  Thank you so much,

Hi,

What is "customlist of all dates"?  That is not a Calendar Table.  Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur @amitchandak 
hi all
please see attached

The value are correct for table Xvalue but not for table Octvalue.
How can i make them using the same fiscal filter?

Thank you so much.

Hi,

Does the FY run from December to November?  Also, the best would be to append data from both datasets into a single one and then build your Pivot Table.  Would you be amenable to this approach?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi,

Download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur 

in this case, the fy is from april to march.

is there any way to use the current pbix file to make it work or add calendar?

I won't be able to make changes to dataset.

Hi,

I doubt I'll be able to help in that case.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur 

if it got to make the changes in dataset, how should it look like...

It would definitely help in the future.

 

Hi,

I don't think any changes in the dataset are required.  In order to try to help you, I may need your PBI and your source Excel files from where you imported data into PBI.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
venal
Memorable Member
Memorable Member

@Anonymous 

Create a new column by concatenating the "ProductName" and "FiscialYear" in the 2 tables. (Ex:- Column-ID)

Remove existing relationships and create a new one by using the ID column.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more

If this post was helpful may I ask you to mark it as solution and give it some kudos?

Anonymous
Not applicable

@venal 

hi, it doesnt allow me to use concatenate? both fields are text field (though the fiscalyear is a calculated column).

Any advice?

Thank you.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors