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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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 @Anonymous  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.

Anonymous
Not applicable

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.