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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
daliux
Frequent Visitor

Need Measure filtered by two measures

I have table of loans by clients

 

Active Loans =
Calculate(DISTINCTCOUNT('Klientai ir paskolos'[Paskolos ID]),'Klientai ir paskolos'[Data išmokėjimo]>MAX(Kalendorius[Data]))
 
Active Loans =
Calculate(DISTINCTCOUNT('Klientai ir paskolos'[Paskolos ID]),'Klientai ir paskolos'[Data išmokėjimo]>MAX(Kalendorius[Data]))
daliux_0-1644491491001.png

Need calculation od clients quantity who have  Active Loans >=1 && RepaidLoans >=1

 
1 ACCEPTED SOLUTION
Aditya_Meshram
Solution Supplier
Solution Supplier

You can try 
CALCULATE( COUNTX(filter(values( 'Table'[Client]) , 'Table'[Active Loans] >=1 && 'Table'[RepaidLoans] >=1 ), 'Table'[Client]))

View solution in original post

2 REPLIES 2
daliux
Frequent Visitor

Thank you

Aditya_Meshram
Solution Supplier
Solution Supplier

You can try 
CALCULATE( COUNTX(filter(values( 'Table'[Client]) , 'Table'[Active Loans] >=1 && 'Table'[RepaidLoans] >=1 ), 'Table'[Client]))

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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