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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
olimilo
Continued Contributor
Continued Contributor

Measure to show equivalent value if the parent table is filtered

I'm trying to display a single value based on a parameter if the parent table is filtered to just one value (using drillthrough to page) . We have 2 tables, AuditorData and Qualification, 1:M joined by a common ID column.

 

AuditorData

ID Name
1 John Doe
2 Jane Doe
3 Jim Doe

 

Qualification

ID QualificationLevel
1 Qual A Lead
1 Qual B Lead
1 Qual C Sub
2 Qual B Sub
2 Qual C Sub
3 Qual A Lead
3 Qual B Sub

 

Previously, I am using the measure below to do just that however it is no longer working properly, where if a AuditorData[Name] has a matching record in a specific Qualification[Qualification], it should show the corresponding Qualification[Level] - now it is only showing blanks or "Not Certified" if there are no matches. Was there a change in how this works or is there a different solution to this?

 

 

Measure = IF(HASONEVALUE('AuditorData'[Name]),
        IF(
            CONTAINS('Qualification', 'Qualification'[Qualification], "Qual A"), 
            MIN('Qualification'[Level]),
            "Not Certified"
        ),
        "-"
    )

 

 

1 ACCEPTED SOLUTION
Deku
Super User
Super User

 

Your measure isn't taking the level for the specific Qualification, need to filter by it

Measure = 
var qualLevel = 
   CALCULATE( 
      MIN('Qualification'[Level]),
      'Qualification'[Qualification] = "Qual A"
   )
var result =
   IF( ISBLANK( qualLevel ), "Not Certified", qualLevel )
RETURN
IF(HASONEVALUE('AuditorData'[Name]), result , "-")

 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

2 REPLIES 2
Deku
Super User
Super User

 

Your measure isn't taking the level for the specific Qualification, need to filter by it

Measure = 
var qualLevel = 
   CALCULATE( 
      MIN('Qualification'[Level]),
      'Qualification'[Qualification] = "Qual A"
   )
var result =
   IF( ISBLANK( qualLevel ), "Not Certified", qualLevel )
RETURN
IF(HASONEVALUE('AuditorData'[Name]), result , "-")

 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
olimilo
Continued Contributor
Continued Contributor

Thanks, this worked for me

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors