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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.