Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

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
  • Anonymous's avatar
    Anonymous
    5 years ago

    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

5 Replies

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

    • Anonymous's avatar
      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's avatar
    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