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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
checkstatap
Frequent Visitor

Var Formula to filter a column summary

Hi All, 

 

I am looking for a var formula that can filter a column with the following measure structure:

 

Rev = Calculate(SUM(Table[Column]),'Table 2'[Column 2]="Filter")

 

Any help would be appreciated!

1 REPLY 1
123abc
Community Champion
Community Champion

If you want to create a measure that calculates the sum of a column (Column) from Table based on a filter condition in another table (Table 2), you can use the following DAX formula:

 

Rev = CALCULATE(SUM('Table'[Column]), 'Table 2'[Column 2] = "Filter")

 

 

It seems like you're trying to create a measure in Power BI using the DAX (Data Analysis Expressions) language. If you want to create a measure that calculates the sum of a column (Column) from Table based on a filter condition in another table (Table 2), you can use the following DAX formula:

 

DAXCopy code
Rev = CALCULATE(SUM('Table'[Column]), 'Table 2'[Column 2] = "Filter")

 

In this formula:

  • CALCULATE is a DAX function used to modify the context in which a formula is evaluated.
  • SUM('Table'[Column]) calculates the sum of the values in the specified column of 'Table'.
  • 'Table 2'[Column 2] = "Filter" is the filter condition you want to apply. It filters 'Table 2' based on the value in 'Column 2' being equal to "Filter".

    Make sure that the column names and table names match your actual data model. Adjust the names accordingly if they are different in your case.

    Remember to replace 'Table' and 'Table 2' with the actual names of your tables and 'Column' and 'Column 2' with the actual column names.

    If you encounter any issues or have additional requirements, feel free to provide more details, and I'll be happy to assist further.

     

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

     

    In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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