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

Relationship between date table and sale table not working

Hello Everyone,

 

I am trying to create a graph that shows me the revenue of each day, with the related, quarter, month and year. I created a relation between my date table and sale table like this. RelationshipRelationship

 

But instead of the desired output it just shows me the total amount of revenue like this

ResultResult

Any tips or hints towards what I am doing wrong would be really helpfull and appreciated.

 

Thanks in advance!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

The problem was that because I was using directquery that even though I changed the datetime to date as soon as I started created graphs it forgot I had done this so all the dates in the sale table still had times like 9:38, 10:44 etc which is what caused it to seem there was no relation. 

 

I found a way to create a new column which shows me the regular date and base the relationship on that column after which it worked.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

The problem was that because I was using directquery that even though I changed the datetime to date as soon as I started created graphs it forgot I had done this so all the dates in the sale table still had times like 9:38, 10:44 etc which is what caused it to seem there was no relation. 

 

I found a way to create a new column which shows me the regular date and base the relationship on that column after which it worked.

v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Set your [DisplayableSubtotal] column to the "Don't summarize" and check if it works.

3-1.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

What is a “date” table for?
I would just add the month, year calc column to the "Sales" table

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.