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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
lowbenol
New Member

Measure Problem with filter

Hello dear all,

My issue is the following:

I want to calculate the number "Matricule" which have only one Total_AT and the number of matricule which have a Total_AT greater than 1.

 

When I do the calculation of Atmulti with the following formula it gives me an empty result.

Total_AT = SUM (DRA [NUMBER AT])

ATmulti = CALCULATE(COUNTX('DRA','DRA'[MATRICULE]), FILTER(DRA,[Total_AT]>1))

Thank you in advance.

 

Capture1.PNG

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi @lowbenol ,

 

Your formula seems work for my sample data. Could you please share your data model to us?

0.PNG

 

Best Regards,

Jay

lowbenol
New Member

Thank you @saksham_jain  for your answer, i try it but still the same problem.

Total_at is a measure = sum(dra,nombre at)

i want to have the number of total by matricule.

saksham_jain
Helper I
Helper I

So I used a dummy table as below and wrote the DAX to count the Matricule that has Total_at > 1. This should help.

Screenshot 2021-05-28 at 9.26.08 PM.pngScreenshot 2021-05-28 at 9.26.39 PM.png

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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