Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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 1 | Measure 2 | Measure 3 | Measure 4 | Measure 5 | Measure 6 | How many of the other measures output a result |
1234 | 5 | 1 | 2 | ||||
5432 | 2 | 3 | 2 | 4 | 5 | 1 | 6 |
5456 | 5 | 6 | un checked | 3 | 4 | ||
6787 | 2 | 2 | 4 | 3 |
Thank you
Richard
Solved! Go to Solution.
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
Hi Owen thank you for responding so quickly and appologies for my late response. Your measure works fine thank you Richard😀
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |