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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.