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
Anonymous
Not applicable

Help with simple CALCULATE meassure

Hello,

I have the following meassure but it doesn't work

 

CALCULATE(MAX('DB'[Quarter]),'DB'[Year]=max('DB'[Year]),COUNTROWS(VALUES('DB'[Week]))>=13)

 

Im trying to return the last complete Quarter available (with 13 or more weeks)

En error shows up saying: "the true/false expression does not specify a column"

 

How can I fix it? Thanks!

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 


Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution to make the thread closed. More people will benefit from it.

 

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

Hi @Anonymous ,

 

Please try:

=CALCULATE(MAX('DB'[Quarter]),FILTER('DB'[Year]=max('DB'[Year])&&COUNTROWS(VALUES('DB'[Week]))>=13))

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , if you are using a date table(Of have date, then join with date table) , then you can get like

 

Last QTD Sales = CALCULATE(Max('Date'[Qtr]),DATESQTD(dateadd('Date'[Date],-1,QUARTER)))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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