Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Priya2007
Frequent Visitor

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" )))
 
1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community 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.

View solution in original post

1 REPLY 1
v-lionel-msft
Community Support
Community 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.

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.