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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
zenton
Helper II
Helper II

Filtering Count by related table

Hi

I am trying to filter PA Status so it only calculates the values with the highest status

zenton_3-1698618841158.png

Table Status Sort (related table)
zenton_0-1698618183794.png

PA Status = SUM('Central Scada'[Available]) & " of " &  SUM('Central Scada'[Installed])

zenton_1-1698618230144.png 

The highest staus in this example is Red so the PA Status should be 3 of 4

 
ThanksRodney

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @zenton ,

 

Here are the steps you can follow:

1. Create measure.

PA Status =
var _highest=
MAXX(
    FILTER(ALL('Table Status Sort'),
    'Table Status Sort'[Sort]=MINX(ALL('Table Status Sort'),'Table Status Sort'[Sort])),[Status])
return
SUMX(
    FILTER(ALL('Central Scada'),
    'Central Scada'[Status]=_highest),[Available])
&" of "&
SUMX(
    FILTER(ALL('Central Scada'),
    'Central Scada'[Status]=_highest),[Installed])

2. Result:

vyangliumsft_0-1698807986864.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi  @zenton ,

 

Here are the steps you can follow:

1. Create measure.

PA Status =
var _highest=
MAXX(
    FILTER(ALL('Table Status Sort'),
    'Table Status Sort'[Sort]=MINX(ALL('Table Status Sort'),'Table Status Sort'[Sort])),[Status])
return
SUMX(
    FILTER(ALL('Central Scada'),
    'Central Scada'[Status]=_highest),[Available])
&" of "&
SUMX(
    FILTER(ALL('Central Scada'),
    'Central Scada'[Status]=_highest),[Installed])

2. Result:

vyangliumsft_0-1698807986864.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.