Forum Discussion

Priya2007's avatar
Priya2007
Frequent Visitor
6 years ago
Solved

All and Filters

Hi ,

I have one filter on Visual on Projectperiod in the report.

I want to sum for all project period but the cost is coming from different table.

Can I have ALL filter condition on one table and other filters on different tables.

I am trying to use below measure :

 

CALCULATE (
SUM ( 'Project Costs'[Actual Cost] ),
Filter (ALL (projects(ProjectPeriod),
FILTER (
'Project Costs',
'Project Costs'[CATEGORY CODE] IN { "LAB", "SUBCON" }
),
FILTER ( CrossTable, CrossTable[Type] = "Act" )))
 
  • Hi Priya2007 ,

     

    You can do like this, but before that you need to create relationships between the tables.

    If you do not create table relationships, you can return the result, but the result may be incorrect.

     

    Best regards,
    Lionel Chen

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

1 Reply

  • v-lionel-msft's avatar
    v-lionel-msft
    Icon for Community Support rankCommunity Support

    Hi Priya2007 ,

     

    You can do like this, but before that you need to create relationships between the tables.

    If you do not create table relationships, you can return the result, but the result may be incorrect.

     

    Best regards,
    Lionel Chen

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