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
okusai3000
Helper IV
Helper IV

Filter Measure by another Measure (again!)

Hello everyone,

 

Sorry to repeat this kind of topic, but after searching, I still don't find a proper answer.

 

I have a FACT table of alarms for every patient. Each of them can have 1 to 3 alarms. I need to make a DISTINCT count of ONLY the patients with 2 or more Alarms.

 

I've been trying formulas like the following but I only obtain BLANK.

 

Calculate(distinctcount('fact RatiosTLM'[Id Paciente]), filter('RatiosTLM', count('fact RatiosTLM'[Id Paciente])>1)

 

Any idea?

 

Thanks a lot!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@okusai3000, Try a measure like

 

countx(filter(Summarize('fact RatiosTLM','fact RatiosTLM'[Id Paciente], "_1", count('fact RatiosTLM'[Id Paciente])),[_1]>1),[Id Paciente])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @okusai3000 

If I understand correctly

VAR T1=  GROUPBY('fact RatiosTLM','fact RatiosTLM'[Id Paciente],"@COUNT",COUNTX(CURRENTGROUP,'fact RatiosTLM'[Id Paciente]))
RETURN
COUNTROWS(FILTER(T1,[@COUNT]>1))

 

 

okusai3000
Helper IV
Helper IV

That was unbelievable FAST! Thank you so much!

amitchandak
Super User
Super User

@okusai3000, Try a measure like

 

countx(filter(Summarize('fact RatiosTLM','fact RatiosTLM'[Id Paciente], "_1", count('fact RatiosTLM'[Id Paciente])),[_1]>1),[Id Paciente])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.