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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Anonymous
Not applicable

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

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

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

amitchandak
Super User
Super User

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

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

 

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
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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.