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 September 15. Request your voucher.

Reply
Anonymous
Not applicable

count of specifc value without making relationship

hi everyone!!
can we count number of specific value without making relationship for each row to show in table.

Say i get two list of names from two different tables using values function and for every name present in list one we get the number of accurance of the same name in list two.

say i have list from table 1 with name ( john, Doe, michle)

and another list with name (john, doe ,michle, john, john, doe)

so if i use names of list one to use in slicer to filter and when i click john than  i should get 3 for john similarly 2 for doe selected 

and these all values should be in a table.
Due to my schema restriction i cannot make relationship between these two tables.  

Kindly help me

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Not very clear, you can create a separate name table and join it both columns, one will active another one will be inactive and you can use userealtionship to activate join

 

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

https://youtu.be/e6Y-l_JtCq4

 

Or you can keep that as in independent Table and filter in measure

like

calculate(countrows(Table), filter(Table, Table[Name] in values(Name[Name])))

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

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Not very clear, you can create a separate name table and join it both columns, one will active another one will be inactive and you can use userealtionship to activate join

 

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

https://youtu.be/e6Y-l_JtCq4

 

Or you can keep that as in independent Table and filter in measure

like

calculate(countrows(Table), filter(Table, Table[Name] in values(Name[Name])))

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
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.