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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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