Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
Thank you for taking time to review my question. I am certain I am missing something simple, but can't identify it.
We have data that is collected via forms. The form data is stored in the Forms Data Table. There are multiple forms within this table and each form has multiple fields.
Question: How do I sum only the negative numbers within the FieldValue column?
FormName | FieldCaption | FieldValue |
Property Valuation Data | Value ($) | -205973 |
Property Valuation Data | Value ($) | -32257 |
Property Valuation Data | Value ($) | -36994 |
Property Valuation Data | Value ($) | 11739 |
Property Valuation Data | Value ($) | 11880 |
Property Valuation Data | Value ($) | 14808 |
Thank you for your assistance!
Patrick
Solved! Go to Solution.
Hi @pnelsonmi
You can do something like this:
Measure = CALCULATE(SUM(MyTable[FieldValue]),MyTable[FieldValue]<0)
Hi @pnelsonmi
You can do something like this:
Measure = CALCULATE(SUM(MyTable[FieldValue]),MyTable[FieldValue]<0)
Thank you for your assistance!
Hi @pnelsonmi
Which column identifies the rows? Is this a sample of source data or a table visual?
Hello,
Thank you for your reply. If I am following you, the FieldValue column contains the row data. This is sample source data. I was not able to upload an attachment of the Excel file. Please advise if there is a way to provide a better sample.
Patrick
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
11 | |
9 | |
6 |