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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Womble23
Regular Visitor

Help with DAX coding, to count the number of "TRUE"

Hi,

I have table of 15 columns where some, all or none of the columns may have a TRUE in 1 or more of the columns. 

I'm looking to create a calculated column which shows me the number of "TRUE" per row with the answer in each row being 0, or 1 - 15. 

From my research I understand I need to use a logical test as I'm using True and False values . I've also thought of changing the TRUE/FALSE format to whole numbers but we already have other filters set up for the TRUE/FALSE set up so I would rather leave them as TRUE/FALSE. 

 

Womble23_0-1691835845191.png

is COUNTAX the function I should be using? 

 

Thanks

1 ACCEPTED SOLUTION
tamerj1
Community Champion
Community Champion

Hi @Womble23 
You can simply sum the 15 columns 

2.png

View solution in original post

4 REPLIES 4
tamerj1
Community Champion
Community Champion

Hi @Womble23 
You can simply sum the 15 columns 

2.png

Thanks for your help. I got to the answer just before you posted!  My way was much more complicated but hey I learnt a few new things today. So much to learn! thanks again. 🙂

Womble23
Regular Visitor

So after more hours of searching I came across an example which was similar to mine so I copied the code and tried to amend it 

 

Womble23_0-1691863246446.png

sadly this is giving me a repeative number of 281 in every cell. 

Womble23_3-1691863434174.png

 

I was expecting to see this result - what am I doing wrong?

 

Womble23_2-1691863384248.png

If anyone has any advice I'd be really grateful 

Womble23
Regular Visitor

I have searched for other examples but can only find one's that start like this: 

I'm also not sure if I can add 15 columns all inside one set of brackets? is that too many? 

Womble23_0-1691860224333.png

Any help would be really appreciated. 

 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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