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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
wi11iamr
Advocate II
Advocate II

How to use a measure to to filter a page

I have created a DateKey table and linked it to my actual records. In my DateKey table I've added many colums, but also a Measure called CurrentFinancialYear. It has the value "2016", and will understandably change everytime I move into a new FY.

 

I'd like to use this measure as the filter for my pages/report, however PowerBI won't let me use a measure as a filter.

 

Is there any way in which I can use this measure to filter my report/pages?

1 ACCEPTED SOLUTION
ankitpatira
Community Champion
Community Champion

@wi11iamr Yes it won't let you use measure for filters. Can you not create a new column instead with same formula and that will let you use that for filters or slicers ?

View solution in original post

4 REPLIES 4
ankitpatira
Community Champion
Community Champion

@wi11iamr Yes it won't let you use measure for filters. Can you not create a new column instead with same formula and that will let you use that for filters or slicers ?

Anonymous
Not applicable

Sorry to ask this on someone elses post, but how do you use a column (created with same formulae as the measure needed) within the Page Filter?  I cant seem to get the Page Filter to accept the column without having to hard code the duration (month for example)

MP_123
Microsoft Employee
Microsoft Employee

@ankitpatira,

i can't use the same formula on column.

this is my measure:

me = if(CONTAINS('Query1 (2)','Query1 (2)'[combination1],[Measure 3]),1,0)

i want it contain 1 or 0 (true or false)

and to filter whthere the measure=1, but i can't use this formula to create the column

even the column = if(me=1,1,0) doesnt work. saying 'isempty' is not supported on DirectQuery.

i don't understand what's the point actually....

another thing- is there any  power bi idea to use measure as a filter that i can vote to?

 

thanks

@ankitpatira Thanks for that prompt - I included a new field in my DateKey table to calculate "IsCurrentFinancialYear", and this I then use successfully to filter on my reports.

 

Much obliged!!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors