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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
o59393
Post Prodigy
Post Prodigy

Sumx returning wrong value

Hi all

 

I've been trying hard to get this sum correct but still not able.

 

The dax measure called count if is not returning me the right sum in the matrix below:

o59393_1-1714349201465.png

 

The statement is simple in that count if, if the % is >=1% return 1 else 0. That works well, the problem is the total. In the example above is giving me 8, but it should be 2.

 

Any support is appreciated. I attach pbix and excel with raw data and outcome desired.

 

COUNT_IF.pbix

TEMPLATE.xlsx

 

Thanks

 

 

 

 

o59393_0-1714349124523.png

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

4 REPLIES 4
lbendlin
Super User
Super User

lbendlin_0-1714350945916.png

 

Hi @lbendlin 

The image is cut, can you please paste the dax?

 

So far I have:

 

 

 

Count IF = 

COUNTROWS(
    FILTER(
        ADDCOLUMNS(
            SUMMARIZE(
                Template, Template[Facet], Template[Area], Template[Tier 1: Process Facet], Template[Tier 2: Activity Facet]),"S",[Non Duplicate Hours Process/Activity 3])
))

 

 

o59393_0-1714351396134.png

 

 

Thanks.

i added the pbix too.

you rock! @lbendlin 

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.