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
powerbityro
Helper II
Helper II

second filter in calculate dont work

Hi All,

 

The second filter in my CALCULATE formula doesn't work (it don't respect the row filter)... can someone tell my why or what would be the right formula?

 

sale_quarter-1 = CALCULATE(SUM(view[sale]) ; ALL(view[year_quarter]); view[DatePreviousQuarter])
 
I work with Direct Query so that some functions like time intelligence, DATEADD don't work. Therefore the DatePreviousQuarter I wrote via the SWITCH function.
1 REPLY 1
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @powerbityro 

DATEADD could not work in Direct Query mode.You may refer to this article.If you need further help,please follow the How to Get Your Question Answered Quickly to post your simple assumed data and expected output.You can upload the .pbix file to OneDrive and post the link here. Do mask sensitive data before uploading.

Regards,

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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