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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
timazarj
Helper II
Helper II

Table relationships

Hi,

 

in my model I have a Date table, using it a slicer, Employee table, using it for usercode. there are 2 different tables for Sales and Returns. I created the relationship between the Date to Sales & Returns to filter the monthly sales and returns. Also created a relationship and connect Employee to Sales & Return to show the employees' name rather than the codes and also be able to filte the names in the report. the relationships are 1-* and single. Now that I run the report it works well for the returns but not for the sales, the numbers are blank. Please advise me.

1 ACCEPTED SOLUTION

@timazarj,

Date(Date and Sales Table) is the culprit. Make sure that you have matching records for Date.

View solution in original post

12 REPLIES 12
SivaMani
Resident Rockstar
Resident Rockstar

@timazarj,

 

Is it possible to share your model diagram? Your result screenshot?

timazarj_0-1622126868239.png

 

timazarj_1-1622126961730.png

The right side should show the sales diagram and numbers which are blank now.

@SivaMani 

You should set up the Employee table to have a one-to-many relationships with both fact tables instead of many-to-many.

Also, can you post the measures you are using in the visuals?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






I did change that still not working

 

Upsells = CALCULATE(COUNT('Sales'[ActivityCode]), FILTER('Sales','XDAT-Upsell'[ActivityCode]= "UPSE"))

@timazarj,

 

Is it possible to share the pbix file (without any sensitive info)?

 Yes, can I have your email address?

@timazarj,

X-DAT and Upsells are calculated measures?

yes they are.

@timazarj,

Date(Date and Sales Table) is the culprit. Make sure that you have matching records for Date.

I changed the data type of the Return table in Power Query and it worked.

I ensured that the Date column, EffectiveDate, and EnteredDateTime in the three tables have the same data type and format, and there are matching records for Date. Still no result.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.