Forum Discussion

Jameel's avatar
Jameel
Regular Visitor
2 years ago
Solved

Common Vs uncommon

I have two excel.One contain 12 ID no, Title and another excel contain 5 title.

I need to create a dax function that compares both titles and if it matches it should count as common and if not matches it should count as uncommon.

i need to visualise in pie chart

 

i used below calclated column:

matchstatus =
IF(
   ISEMPTY(FILTER('excel1','excel1'[Title] = 'excel2[Title])),
   "Uncommon",
   "common"
)
But instead of uncommon, it is showning blank in pie chart.

.

 

Can anyone help?excel1excel2

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Jameel ,

     

    According to your statement, I think your issue should be caused that you add this column in Sheet1(2). Due to it doesn't contain all title in it, so it will return blank in your visual. Please add a column in Sheet1.

    Column =
    IF (
        ISEMPTY (
            FILTER ( 'Sheet1 (2)', 'Sheet1 (2)'[title] = EARLIER ( 'Sheet1'[title] ) )
        ),
        "UnCommon",
        "Common"
    )

    Result is as below.

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

9 Replies

  • Jameel 

    In your Excel 1 Table, aa new Calculated column with this DAX:

    IF( ISEMPTY( FILTER( excel2 , excel2[title] = EARLIER( [title] ) ) ) , "UnCommon" , "Common" )

    Use this New Column to visualize it using a Pie Chart

     

    • Jameel's avatar
      Jameel
      Regular Visitor

      i tried above dax function, but it showing common correctly, but instead of uncommon, it is showing blank

       

       

      Note: mentioned "most used" instead of  "common"