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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
inglexjc
Helper V
Helper V

Have data take primary

What Logic do I need to use to  show the “Intake CW – Primary” if it exists.  If it doesn’t, then show the “Intake CW”. 

 

I need the data to show on one line:

inglexjc_0-1670947560923.png

I currently created a table:

Intake Caseworker = DISTINCT( UNION(ALL('Table'[Name - Primary Intake Caseworker]), ALL('Table'[Name - Intake Caseworker])))
But I have a case where there is a Primary Intake Caseworker and they are showing blank on my Report but the Data shows it there.  And if there is a Primary Intake Caseworker we only want them listed and then if there isn't one then list the Intake Caseworker.
2 REPLIES 2
amitchandak
Super User
Super User

@inglexjc , not very clear, we create a common table and join with both tables, on join will be inactive use use relationship to activate 

 

Intake Caseworker = DISTINCT( UNION(DISTINCT('Table'[Name - Primary Intake Caseworker]), DISTINCT('Table'[Name - Intake Caseworker])))

 

and if count('Table'[Name - Primary Intake Caseworker]) is not blank then it has primary in take

 

example

 

countx(filter( values('Intake Caseworker'[Name - Primary Intake Caseworker]), not(isblank(calculate(count('Table'[Name - Primary Intake Caseworker]) ))) ), [Name - Primary Intake Caseworker])

 

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

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

Are you creating a new column in the table "Intake Caseworker"?  Or creating a new table?  Because when I create a new column in my table it's counting the Case workers, which is not what I'm wanting.

 

inglexjc_0-1670955292381.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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 Solution Authors