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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Krijgersss
Helper II
Helper II

Need some help with DAX

Hello i need some help with my measure, i'm trying to use this measure in a table visual:

Closed Aantal = CALCULATE(COUNT('newfysic prj_subscription_term'[closed]),'newfysic prj_subscription_term'[closed]="TRUE")

but if i use the messasge i get this error (see screenshot) what do i need to change i want to count the colum wich is a true/false colum
Krijgersss_0-1709020150294.png

 

1 REPLY 1
123abc
Community Champion
Community Champion

Based on the error message you provided, it seems that there might be an issue with the syntax or the way you're referencing the column in your DAX measure.

Here's the corrected measure for counting the occurrences where the 'closed' column equals "TRUE" in your 'newfysic prj_subscription_term' table:

 

Closed Aantal = CALCULATE(COUNTROWS('newfysic prj_subscription_term'), 'newfysic prj_subscription_term'[closed] = TRUE())

 

In this measure:

  • COUNTROWS('newfysic prj_subscription_term') counts the rows of the 'newfysic prj_subscription_term' table.
  • 'newfysic prj_subscription_term'[closed] = TRUE() filters the rows where the 'closed' column equals "TRUE".

Make sure that the column 'closed' in your table is indeed a Boolean column containing TRUE/FALSE values. If it's stored as text "TRUE" and "FALSE", you may need to adjust the comparison accordingly.

Try this measure and see if it resolves the issue you're encountering.

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.