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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mfloresb09
New Member

Averagex with a unique Identifier as a filter

Hey guys,

 

I appreciate the help. I want to create an expression that calculates the average price of different products filtered by a unique identifier in this case a contract number.

 

This is my data:

mfloresb09_0-1653676916967.png

 

This is the expression I am working with but it is not applying the Contract filter and instead it is using the total average on the data.

mfloresb09_1-1653677022838.png

 

1 ACCEPTED SOLUTION
mfloresb09
New Member

Hi, @HenriqueReis Thanks for the reply. So I am using trying to view this information as a value in a matrix that was already created. I was playing with the model relationships and I fixed the issue I was having. I appreciate your help. The above expression was correct.

mfloresb09_0-1653678822944.png

 





View solution in original post

3 REPLIES 3
mfloresb09
New Member

Hi, @HenriqueReis Thanks for the reply. So I am using trying to view this information as a value in a matrix that was already created. I was playing with the model relationships and I fixed the issue I was having. I appreciate your help. The above expression was correct.

mfloresb09_0-1653678822944.png

 





That's great! haha

 

Regards!

HenriqueReis
Resolver I
Resolver I

Hi,

 

It's simple:

 

Create a measure like this:

 

Measure = average(All contracts advanced[price])

 

Then put your meassure in a card

HenriqueReis_0-1653678221107.png

 

 

And create a slicer and put your contract

HenriqueReis_1-1653678242950.png

 

Select just the contracts you want and then I think it's going to work

 

Regards!

 

 

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.