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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

How to count the fields with values in the matrix table?

Hi,

I have a matrix table, where I want a measure that gives me the total count of fields with values.

 

In the below image, we have 37 fields that have values and 11 fields that do no exist. 

 

image.png

 

Cycles = CALCULATE( DISTINCTCOUNT('TLX Job'[Job No]),'TLX Job'[Job Status] in {"FINISHED", "DELIVERED"})

 

I know it not possible to calculate the fields which do not exist(11)

 

How to write a measure that gives 37(fields with values) in this example?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try like

countx('TLX Job',[Cycles])
countx(summarize('TLX Job','TLX Job'[Value],'TLX Job'[Date],"_1",[Cycles]),[_1])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Try like

countx('TLX Job',[Cycles])
countx(summarize('TLX Job','TLX Job'[Value],'TLX Job'[Date],"_1",[Cycles]),[_1])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors