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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors