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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Display value from value from another table

Dear friends

how can i display value from another table to visual like this , i need to display distinct value to visual that row header from other table

Table 1

Date  TypeLicense
01-01-21LAAA
01-01-21LBBB
02-01-21PCCC
02-01-21PCCC

 

Table Visual *Type column are from table2

TypeDistinct license
L2
P1
1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Solution1: create a relationship between table1 and table2.

Solution2: create a measure as below.

Measure = CALCULATE(DISTINCTCOUNT('Table'[License]),FILTER('Table','Table'[Type]=SELECTEDVALUE('Table (2)'[Type])))

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

5 REPLIES 5
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Solution1: create a relationship between table1 and table2.

Solution2: create a measure as below.

Measure = CALCULATE(DISTINCTCOUNT('Table'[License]),FILTER('Table','Table'[Type]=SELECTEDVALUE('Table (2)'[Type])))

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@Anonymous , what is the relation between table 1 and table 2. what is the data of table 2

Anonymous
Not applicable

@amitchandak for table 2 are transaction like table 1 ,i create some reference for relate by merge date and type for each table

@Anonymous , if you have a common type table then the measure 

distinctcount(Table1[License]) should help 

 

if you do not have one refer https://www.youtube.com/watch?v=Bkf35Roman8

 

Anonymous
Not applicable

@amitchandak i tried but it show all distinct value that not divide by type (ex. boths type L and P display distinct license as 3 )

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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