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
Anonymous
Not applicable

create a measure with 5 columns based on on and 2 filter criterias and use this measure as a button

Dear all,

 

I am new to PBI, I want to create a measure based on one sinngle table, which involves summing 5 columns from the same table and 2 filter criterias from the same table) ..I tried suing combination of calculate, sum and filter with out success.

I want to use this created measure as a buttoon in PBI.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

To create a measure based on a single table, you can use the DAX formula SUMX to sum the values of multiple columns in a table.

MeasureName = SUMX(TableName, [ColumnName1] + [ColumnName2] + [ColumnName3] + [ColumnName4] + [ColumnName5])

vtangjiemsft_0-1698112844049.png

 

You can also add filter criteria to the formula using the FILTER function.

MeasureName = CALCULATE(SUMX(TableName, [ColumnName1] + [ColumnName2] + [ColumnName3] + [ColumnName4] + [ColumnName5]), FILTER(TableName, [FilterColumnName1] = "FilterValue1" && [FilterColumnName2] = "FilterValue2"))

vtangjiemsft_1-1698113008824.png

Best Regards,

Neeko Tang

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

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

To create a measure based on a single table, you can use the DAX formula SUMX to sum the values of multiple columns in a table.

MeasureName = SUMX(TableName, [ColumnName1] + [ColumnName2] + [ColumnName3] + [ColumnName4] + [ColumnName5])

vtangjiemsft_0-1698112844049.png

 

You can also add filter criteria to the formula using the FILTER function.

MeasureName = CALCULATE(SUMX(TableName, [ColumnName1] + [ColumnName2] + [ColumnName3] + [ColumnName4] + [ColumnName5]), FILTER(TableName, [FilterColumnName1] = "FilterValue1" && [FilterColumnName2] = "FilterValue2"))

vtangjiemsft_1-1698113008824.png

Best Regards,

Neeko Tang

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

 

Uzi2019
Super User
Super User

@Anonymous 
Would you please elaborate what exactly you want to calculate I mean expected outcome. 
And how you want to display?
You can use excel to depict your scenario n share screenshot.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

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.

Top Solution Authors