Forum Discussion

Kayla2020's avatar
Kayla2020
Frequent Visitor
2 years ago
Solved

Filter to disconnected tables.

Hi everyone, I am quite new to DAX formulas and I would appreciate your support on this. I have a matrix table based on dept and cost. There are two disconnected tables(based on project) used i...
  • v-zhangti's avatar
    2 years ago

    Hi, Kayla2020 

     

    You can try the following methods.

    Measure = 
    Var _table=UNION(CALCULATETABLE(Slicer_1),FILTER(Slicer_1,[project]=SELECTEDVALUE(Slicer_1[project])),CALCULATETABLE(Slicer_2),FILTER(Slicer_2,[project]=SELECTEDVALUE(Slicer_2[project])))
    Return
    IF(SELECTEDVALUE(Facts_table[project]) in _table,1,0)

    Place measure in the filter of the view to be filtered and set it equal to 1.

    Is this the result you expect?

     

    Best Regards,

    Community Support Team _Charlotte

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