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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cottrera
Post Prodigy
Post Prodigy

DAX function to count all other DAX functions

Hi Community 

 

I have a report that has a visual table containing a set amount of DAX functions. Some produce results , were as others do not.

I would like a final DAX function that counts all other the other measures and provides a total count of how many produce a result.

Below is an example of how I see this working

Reference #Measure 1Measure 2Measure 3Measure 4Measure 5Measure 6How many of the other measures output a result
12345  1  2
54322324516
545656un checked 3 4
6787224   3

 

Thank you

Richard

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @cottrera 

I would suggest creating a measure that assembles the existing measures in a single-column table then counts the nonblank values.

Here's how I would do it:

Nonblank Measure Count =
VAR MeasureValues = {
    [Measure 1],
    [Measure 2],
    [Measure 3],
    [Measure 4],
    [Measure 5],
    [Measure 6]
}
RETURN
    COUNTROWS (
        FILTER (
            MeasureValues,
            NOT ISBLANK ( [Value] )
        )
    )

Does this work for you?

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

2 REPLIES 2
cottrera
Post Prodigy
Post Prodigy

Hi Owen thank you for responding so quickly and appologies for my late response. Your measure works fine thank you Richard😀

OwenAuger
Super User
Super User

Hi @cottrera 

I would suggest creating a measure that assembles the existing measures in a single-column table then counts the nonblank values.

Here's how I would do it:

Nonblank Measure Count =
VAR MeasureValues = {
    [Measure 1],
    [Measure 2],
    [Measure 3],
    [Measure 4],
    [Measure 5],
    [Measure 6]
}
RETURN
    COUNTROWS (
        FILTER (
            MeasureValues,
            NOT ISBLANK ( [Value] )
        )
    )

Does this work for you?

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.