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

Multi Tables filter

Hi, I'm looking fo a way to solve this little issue. 

 

I have two tables (strategy and price) linked to a third one (category). 

 

I want to get a table on my report of : The average of amount by date and by strategy (look at the picture it will be easier to understand).

 

I have one amount by month.

 

Thanks !

 

The tables : 

Price

-    date Amount

 

-   Amount

 

-   idCategory

 

-   idPrice

 

 

 

Category

-          idStrategy

 

-      idCategory

 

Strategy

-     name of Strategy

 

-       idStrategy

 

Want I want to get :

 

Strategy

Price average

A

158

B

598

C

456

 

Date slicer : 12/05/2019

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

Thanks for your help !

 

 

 

2 ACCEPTED SOLUTIONS
Washivale
Resolver V
Resolver V

Hello @Anonymous ,

 

Create relationship between tables using Manage relationship.

 

Category[idCategory] to Price[IdCategory]

Category[idStrategy] to Strategy[idStrategy]

 

View solution in original post

Hi @Anonymous,
 
Created below using quick measures, check if it helps
 
idPrice average per Date =
AVERAGEX(
    KEEPFILTERS(VALUES('Price'[Date])),
    CALCULATE(SUM('Price'[Amount]))
)

View solution in original post

5 REPLIES 5
Washivale
Resolver V
Resolver V

Hello @Anonymous ,

 

Create relationship between tables using Manage relationship.

 

Category[idCategory] to Price[IdCategory]

Category[idStrategy] to Strategy[idStrategy]

 

Anonymous
Not applicable

Hi @Washivale ,

 

It's already done, i'm just trying to find out how to code my dax measure to get the average of Amount by strategy for each dates. 

 

Thanks for your answer

Hi @Anonymous,
 
Created below using quick measures, check if it helps
 
idPrice average per Date =
AVERAGEX(
    KEEPFILTERS(VALUES('Price'[Date])),
    CALCULATE(SUM('Price'[Amount]))
)
Anonymous
Not applicable

Thanks @Washivale , your dax code resolves my issue ! 

 

Thanks for the time you gave me !

Glad that worked!

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.

Top Solution Authors