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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Include a measure in the visual level filter.

Screenshot (6).png

Can I use a measure in a visual level filter. I have to display the products those have productSales above the average value avg .

I'm using DirectQuery,so the average value may change over time.

1 ACCEPTED SOLUTION
BILASolution
Solution Specialist
Solution Specialist

Hi @Anonymous

 

I have a table "Sales"

 

m.png

 

 

"Avg" and ">Avg" are "calculated columns"

 

Avg = AVERAGEX(ALL(Products);Products[Sales]) 
> Avg = IF(Products[Sales] >= Products[Avg];">Average";"<Average")

You can use it to filter.

nnnn.png

 

 

I hope this helps

 

BILASolution

View solution in original post

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.

 

Best Regards!
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

You mean you want to add a measure as a value rather than a filter? I'm afraid we can do it only with filter TOPN. Please refer to: https://community.powerbi.com/t5/Desktop/Filter-by-a-measure/m-p/101130

Include a measure in the visual level filter.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BILASolution
Solution Specialist
Solution Specialist

Hi @Anonymous

 

I have a table "Sales"

 

m.png

 

 

"Avg" and ">Avg" are "calculated columns"

 

Avg = AVERAGEX(ALL(Products);Products[Sales]) 
> Avg = IF(Products[Sales] >= Products[Avg];">Average";"<Average")

You can use it to filter.

nnnn.png

 

 

I hope this helps

 

BILASolution

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors