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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Chanise89
Helper I
Helper I

Custom output based on table values

I need help with this one.

I have a requirement that says if a "User ID" has data in the "Tableau Report" column then return "Approved" 

If it doesnt have data then return "Not Approved"

 

I seemed to have figured out the "Not Approved' part but for some reason, I can't get "Approved" figured out.

Please Help

 

This is my DAX

2Box Title = SWITCH(
    TRUE(),
    SELECTEDVALUE(MetricInsights[User ID]) = VALUES('tableau_groups'[Tableau Report]),"Approved","Not Approved")
 

Chanise89_0-1689296832745.pngChanise89_1-1689296864923.png

 

1 ACCEPTED SOLUTION
Kishore_KVN
Solution Sage
Solution Sage

Hello @Chanise89 ,

Please note you are varifying with two different columns if you want to verify like that then you may have to create count of tableau report column or you should have userID in tableau report table as well otherwise it is like you will be comparing apples with oranges. 

 

If you want to proceed with count then create a new column like 
Count of Tableau Report = COUNTA(Tableau Report Columns)

Then write your measure 

2Box Title = If(Count of Tableau Report = Blank(),"Not Approved","Approved")

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

View solution in original post

2 REPLIES 2
Kishore_KVN
Solution Sage
Solution Sage

Hello @Chanise89 ,

Please note you are varifying with two different columns if you want to verify like that then you may have to create count of tableau report column or you should have userID in tableau report table as well otherwise it is like you will be comparing apples with oranges. 

 

If you want to proceed with count then create a new column like 
Count of Tableau Report = COUNTA(Tableau Report Columns)

Then write your measure 

2Box Title = If(Count of Tableau Report = Blank(),"Not Approved","Approved")

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Thank you so much! This is exactly what I needed

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.