March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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.
Solved! Go to Solution.
Hi @Aishwaryazanpur ,
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])
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"))
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.
Hi @Aishwaryazanpur ,
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])
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"))
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.
@Aishwaryazanpur
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |