cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Re: Measures in Filter

@Thyago_Rezende

Table 1 aditional have two columns:

Id_transaction

Datetime

Id_product in first table don't unique.

Do you undestand me? 

Highlighted
Helper I
Helper I

Re: Measures in Filter

Who can help?

Highlighted
Helper I
Helper I

Re: Measures in Filter

Can anybody help me?

Highlighted
Helper I
Helper I

Re: Measures in Filter

@v-ljerr-msft

Please help resolve my problem

Highlighted
Community Support
Community Support

Re: Measures in Filter


@Grizman wrote:

@Thyago_Rezende

Table 1 aditional have two columns:

Id_transaction

Datetime

Id_product in first table don't unique.

Do you undestand me? 




Can you share sample data of those two tables and your expected results? 

 

Best Regards,
Qiuyun Yu 

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

Re: Measures in Filter

Hello @Grizman,

 

Can you send sample data? Or display all fields from tables?

 

 

Highlighted
Helper I
Helper I

Re: Measures in Filter

11.PNG

Highlighted
Resolver I
Resolver I

Re: Measures in Filter

You must create a Bridge Table for relation both Table1 and Table2. A bridge table with PrimaryKey from id_Product and bi-directional relationship. 
This article below, explain about pattern works for many to many relationship. 

 

https://www.sqlbi.com/articles/optimize-many-to-many-calculation-in-dax-with-summarize-and-cross-tab...

 

Regards,

Highlighted
Helper I
Helper I

Re: Measures in Filter

I created bridge table Table 3 with one column id_product.

But I don't know how realize formula Q-ty*Price across thase table.

Highlighted
Resolver I
Resolver I

Re: Measures in Filter

First picture below shows bi-directional relationship between tables. 

p1.png

 

Second picture shows measure for year 2016. 

p2.png

 

Hope help you. 

Best regards,

View solution in original post

Helpful resources

Announcements
Meet the 2020 Season 2 Power BI Super Users!

Meet the 2020 Season 2 Power BI Super Users!

Find out who's part of the program this season, and welcome the new Super Users.

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Featured Data Story of The Month

Featured Data Story of The Month

All Data Stories Gallery contributions are reviewed for each month. We select a contribution and feature the community member the following month.

Power BI Dev Camp - Developing with .NET Core

Power BI Dev Camp - Developing with .NET Core

Learn how to develop custom web applications for Power BI using .NET Core 3.1 and .NET 5.

Top Solution Authors
Top Kudoed Authors