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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Measure count as filter to create a new measure

ID count = CALCULATE(COUNT('Reporting Absence'[Id]),FILTER('Reporting Absence',[Absence count]>=6))
I am trying to count the number of ID that have more than 6 absences. But it shows blank.
Is there anything wrong?
7 REPLIES 7
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,
 
According to the DAX formula you provided, I tested it without any problem. Can you provide the sample pbix or the formula of [Absence count]?
test_id_count.PNG
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

The absent count is a measure not a calculated column... I guess that's the reason why its not working?

amitchandak
Super User
Super User

Count More than 6 absence means you need group data at a level and then filter it. You need to use values to group data at a level.

 

It would be something like this

Absence count = COUNT('Reporting Absence'[Id])

ID count = CALCULATE(SUMX(values('Reporting Absence'[Id]),Absence count ),FILTER('Reporting Absence',[Absence count]>=6))

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

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
Anonymous
Not applicable

I tried to create the absent count and ID count with measures. It still returns blank...

Hi @Anonymous ,
 
Could you provide the sample pbix or the DAX formula of [Absence count]?(Please mask any sensitive data before uploading)
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

To help you further I need pbix file. If possible please share a sample pbix file after removing sensitive information.Thanks.

My Recent Blog -

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

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
Ashish_Mathur
Super User
Super User

Hi,

Does this work?

ID count = CALCULATE(COUNTROWS('Reporting Absence'),'Reporting Absence'[Absence count]>=6)

My assumption is that Absence count is a column in your dataset.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors