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
Anonymous
Not applicable

Date from calender table not working in datamodel

Hi,

 

I have created a Business Central datamodel in Power BI and created a calender table. However I cant see Date from calender table combined with data from purchaseDocuments table. Only from G_LEntries, VendorLedgerEntries and VendorInfo.

Can you help? 

 

Udklip1.JPG

 

Best regards,

Mikkel

5 REPLIES 5
v-gizhi-msft
Community Support
Community Support

Hi,

 

According to your description, i think table 'purchaseDocuments' doesn't have date field and the one-to-many relationship between 'CS_VendorInfo' and 'purchaseDocuments' depends on another field not date.

So, if you want to combine date from 'Calendar' with data from 'pruchaseDocuments', please try to add the field above said.

Here is my simple sample:

pbix 

 

111.PNG

112.PNG

 

Hope this helps.

 

Best Regards,

Giotto Zhi

Anonymous
Not applicable

HI @v-gizhi-msft 

Thanks, 

 

purchaseDocuments have a date field. Its PostingDate as you can see in my screenshots.

 

Yes, CS_VendorInfo is just a table with information about Vendors. It doesnt have a date field as it is not relevant in such table. INstead my key between CS_VendorInfo and pruchaseDocuments is VendorNumber. 

 

Is it impossible to combine calender with purchaseDocuments without the date field in the latter? 

Hi,

 

Because CS_VendorInfo does not have date field and the relationship between CS_VendorInfo and purchaseDocuments depends on another field called [VendorNumber] as you said.

So if you want to filter purchaseDocuments by date in Calendar, you should add this [VendorNumber] field in table visual instead of directly filtering.

 

Best Regards,

Giotto Zhi

 

 

Anonymous
Not applicable

Actually, the datamodel I've created makes sense. The "issue" is that I want a single value on a date (calender) from my many-table purchaseDocuments. The logic for me is not quite clear but I've made a table with date and amount from purchaseDocuments AND using Vendorname from my VendorInfo-table, which works fine. 

amitchandak
Super User
Super User

What all date you have in the purchase table and why are you not able to join. I can see posting date

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.