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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

I need help with DAX. I need to calculate record id's if values in two different columns=1

 Table A     MESURE-x 
         
Record idCol AFILTER1FILTER2   COUNT RECORD IDs 
A 11     
A 10   1 
B 11     
C 11     
C 10     
D 10   1 
E 10   1 
         
       3 
         

 

The table has two filter columns, I need to count record IDs that would match to the Mesure x

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @Anonymous 

Try the measure :

test = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[FILTER1]+'Table'[FILTER2]=1))
Please note that according to your description of the logic, the result is 4 ( not 3) because record ID "c" meets the condition too.
 
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Anonymous
Not applicable

Yes, I agree, thank you so much!

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @Anonymous 

Try the measure :

test = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[FILTER1]+'Table'[FILTER2]=1))
Please note that according to your description of the logic, the result is 4 ( not 3) because record ID "c" meets the condition too.
 
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

@Anonymous 
Happy to help, please consider Accepting my response as the solution to help the other members find it more quickly. 
(you marked your response )

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

Yes, I agree, thank you so much!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.