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
Jos13
Helper III
Helper III

Relationship with Summary Table

Hi Team,

I have a table (Table A) in the following format

table a.png

Table B is defined as

Table B = SUMMARIZE('Table A','Table A'[Signature],"Event",SUM('Table A'[Event]),"Avg Alt",AVERAGEX('Table A','Table A'[Alt]))
I also have a date table. Relationship between these tables is as follows.
rel.png
When I filter a date from date table, It gives me the wrong value for Event from Table B.
output.png
On 1st may 2020, the value of event should be 1.
How to resolve this issue ?
Please help
1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi  @Jos13 

The relationship between TableA and TableB is based on [Signature], When you filter a date from date table, it will filter out [Signature] in tableA, then TableA will filter TableB only by [Signature] filed, it couldn't filter tableB by [date].

For example:

When you filter 1st may 2020, it will filter Signature is 772325 in TableA, then TableA will filter TableB by [Signature] field which it only is 772325 in TableB, so the result is 4 not 1.

 

For your case, you do not need a TableB, just use TableA will meet your all requirement.

Eg. you could just drag SUM of TableA[Event]

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hi  @Jos13 

The relationship between TableA and TableB is based on [Signature], When you filter a date from date table, it will filter out [Signature] in tableA, then TableA will filter TableB only by [Signature] filed, it couldn't filter tableB by [date].

For example:

When you filter 1st may 2020, it will filter Signature is 772325 in TableA, then TableA will filter TableB by [Signature] field which it only is 772325 in TableB, so the result is 4 not 1.

 

For your case, you do not need a TableB, just use TableA will meet your all requirement.

Eg. you could just drag SUM of TableA[Event]

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mahoneypat
Employee
Employee

The Date table is filtering to that Date in Table A, but the bi-di relationship with Table B is on Customer, so you are getting the sum for all rows of that Customer.  You should not need to create Table B and do it all with a measure on Table A.  You should be able to have a simple SUM(TableA[Event]) measure and slice/dice by Signature, Date, Company, etc. in your visuals.

 

If this works for you, please mark it as solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


amitchandak
Super User
Super User

@Jos13 , did not get the need of Table B, As you got that from Table A. what is that you would not have got from Table A

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.