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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
MBegum
Frequent Visitor

Dax Filter on Measure

Hi all,

 

I am new to DAX expressions and am trying to work out the current academic year based on the start and end dates. I have managed to write a dax expression in DAX studio using filter() function which returns the result expect but when I apply this to a measure in Power BI Desktop I get the error message "too many arguments were passed to the filters function. The maximum argument count for the function is 1)". 

 

Could someone help and advise what I'm doing wrong?

 

example of the table

 

Academic Years.PNG

dax formula created

image.png

Error in Power BI desktop

image.png

 

Thanks

 

Monju

5 REPLIES 5
AlexisOlson
Super User
Super User

It looks like you wrote FILTERS instead of FILTER in desktop.

I tried with FILTER() too and am still getting the same error.

That doesn't make sense. It should at least give a different error since FILTER expects two arguments.

Apologies, the message is slightly different. I'm a confused as to why the dax expression works in DAX studio but not in Power Bi.image.png

Are you defining CYOE as a calculated table? The error makes me think you are trying to define a measure or a calculated column with a table definition, which doesn't make sense.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors