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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

True False expression does not specify a column

I have been struggling trying to get this measure correct. I need to have a count in my table for the survey ID so that I can see how many surveys there were for each dealer in the past month that answered the dealer experience question on the survey. The issue with the measure below happens when I add in the Dates in Period function. I need the count to only be for the past month of data and I need the date function to ignore the dealer, territory, and division filters on the table. When I don't have the ALL function in the calculation, the date changes depending on the dealer because some haven't filled out a survey for a couple of months. If you can help me come up with a solution to the "True/False expression does not specify a column. Each True/False expression used as a table filter expression must refer to exactly one column. " error, that would be great!

 

CALCULATE(COUNTA(Query1[Survey_ID]), Query1[question] in {"Dealer Experience"}, CALCULATE(DATESINPERIOD( 'Date Table'[Date],MAX('Date Table'[Date]), -1, MONTH), FILTER(Query1, ALL('Query1'[Dealer])), FILTER(Query1, ALL(Query1[Service_Territory])), FILTER(Query1, ALL(Query1[Service_Division]))))
 
1 REPLY 1
Sahir_Maharaj
Super User
Super User

Hello @Anonymous,

 

Can you please try this:

Survey Count Last Month = 
CALCULATE(
    COUNTA(Query1[Survey_ID]), 
    Query1[question] = "Dealer Experience",
    DATESINPERIOD(
        'Date Table'[Date],
        MAX('Date Table'[Date]),
        -1, 
        MONTH
    ),
    ALL('Query1'[Dealer]),
    ALL(Query1[Service_Territory]),
    ALL(Query1[Service_Division])
)

Hope this helps!


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ About: https://sahirmaharaj.com/about.html
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.