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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.