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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Auski
Advocate I
Advocate I

Create table visual that shows First AND Final warnings

Good afternoon all,

 

I think this one will be solved pretty quickly, but could use the help of my betters!

I have a table called 'performance_management' that contains the following sample data.

IDWarningGrade
10088First Warning1
10092First Warning1
10142First Warning1
10625First Warning15
10775First Warning14
11101First Warning11
12777First Warning16
12777Final Warning14
12832First Warning14
21621First Warning1
21600First Warning11
22116First Warning10
22116Final Warning17


I would like to create a table visual in my dashboard that shows only those ID's that have had their first AND final warnings only. In this example I would expect that outcome to be the following:

IDWarningGrade
12777First Warning16
12777Final Warning14
22116First Warning10
22116Final Warning17


Hope this makes sense.
Thanks so much 🙂

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Auski ,

Create measures like

 

M1 = calculate(distinctcount(Table[Warning]) , filter(all(Table), Table[ID] = max(Table[ID])  && Table[Warning] in {"First","Final"} ) )

 

M2 =

if(Not(Isblank([M1])) , Sum(Table[Grade]), Blank())

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
amitchandak
Super User
Super User

@Auski ,

Create measures like

 

M1 = calculate(distinctcount(Table[Warning]) , filter(all(Table), Table[ID] = max(Table[ID])  && Table[Warning] in {"First","Final"} ) )

 

M2 =

if(Not(Isblank([M1])) , Sum(Table[Grade]), Blank())

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

Thank you @amitchandak , that worked perfectly 🙂

amitchandak
Super User
Super User

@Auski ,

Create measures like

 

M1 = calculate(distinctcount(Table[Warning]) , filter(all(Table), Table[ID] = max(Table[ID])  && Table[Warning] in {"First","Final"} ) )

 

M2 =

if(Not(Isblank([M1])) , Sum(Table[Grade]), Blank())

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors