Forum Discussion

agarwala's avatar
agarwala
Helper I
1 year ago
Solved

Deleted

Deleted

  • agarwala's avatar
    agarwala
    1 year ago

    Hello Zhu,

    I tried changing the cross filter direction too but it dint work.

    At the end I have created the calculated column in  table 2 which will store the count of CVE_ID here is the DAX:

     COUNTROWS(                
    FILTER(                              
       'API_SOFTWARE_VULNERABILIITIES_MACHINE',                        
      'API_SOFTWARE_VULNERABILIITIES_MACHINE'[CVEID] = EARLIER('API_SOFTWARE_VULNERABILIITIES_MACHINE'[CVEID])
    )
     )
    And then I referred that in table 1.
    It solved my issue.
    Thank you so much for all the replies to my post 🙂
     
     

11 Replies

    • agarwala's avatar
      agarwala
      Helper I

      Hello,

       

      I am not storing the counts in the table I have created the measures so not sure how will I use VLOOKUP here?

       

      • ribisht17's avatar
        ribisht17
        Super User

        hi agarwala 

         

        I am not having any problem in getting the answer 

         

        Just check of you need to swap table 1 and 2 in the DAX

         

        Regards,

        Ritesh

        Please mark the answer if helpful so that it can help others as well

         

         

         

  • Hi,

    Create a single column Dim tableof CVEID from both tables.  Create a many to One relationship from both fact tables to this Dim table.  To your visual, drag CVEID from the Dim table. 

  • Your formula should work as a measure. In what way is it wrong?

    • agarwala's avatar
      agarwala
      Helper I

      Its showing the count just as 1 instead of 312.

       

      I am going crazy unable to understand why is this happening.

       

       

  • Hi agarwala  You measure should work. Please check which column you have placed in table rows. The CVEID column should be place in rows from Table2 or in slicer.