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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

DAX Measure error need to add values or format to countrows

Hi Experts

 

Cannot see my error on where to add values or format inorder to countrow the rows
Measure =

CALCULATE(sum(RTT[Pathway]),RTT[Actual_Weeks_Waiting] IN {"Admitted", "Non Admitted"}),REMOVEFILTERS('Table_Switch'[Selection])
))
 
2 ACCEPTED SOLUTIONS
PVO3
Impactful Individual
Impactful Individual

CALCULATE(
  COUNTROWS(RTT),
  RTT[Actual_Weeks_Waiting] IN {"Admitted""Non Admitted"},
  REMOVEFILTERS('Table_Switch'[Selection])
)
 
PVO3_0-1665413706259.png

 

View solution in original post

Anonymous
Not applicable

CALCULATE(
  COUNTROWS(RTT),
  RTT[Actual_Weeks_Waiting] IN {"Admitted""Non Admitted"},
  REMOVEFILTERS('Table_Switch'[Selection])

View solution in original post

5 REPLIES 5
PVO3
Impactful Individual
Impactful Individual

CALCULATE(
  COUNTROWS(RTT),
  RTT[Actual_Weeks_Waiting] IN {"Admitted""Non Admitted"},
  REMOVEFILTERS('Table_Switch'[Selection])
)
 
PVO3_0-1665413706259.png

 

Anonymous
Not applicable

Hi PVO3 - still getting the following error message

Checkers111_0-1665414054309.png

 

PVO3
Impactful Individual
Impactful Individual

What measure do you use?

It appears like you're still using SUM, or your RTT[Actual_Weeks_Waiting] is not a text field.

Anonymous
Not applicable

solved ignore previous post - thanks

Anonymous
Not applicable

CALCULATE(
  COUNTROWS(RTT),
  RTT[Actual_Weeks_Waiting] IN {"Admitted""Non Admitted"},
  REMOVEFILTERS('Table_Switch'[Selection])

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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