Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I'm triying to show the total of the positive values only from a measure (Inv. Expected) that I created that substracts and sums several columns.
In this scenario, the total includes the -58.56. I don't want to consider that value, I need to show the result of the sum of all the positives.
Thanks!!!
Solved! Go to Solution.
Hey @SAGUILAR ,
I think that formula in Dax would be something like "CALCULATE(SUM('Table'[field],'Table'[field] >0)"
Let us know if that works to do what you want.
Proud to be a Datanaut!
Private message me for consulting or training needs.
Thank you @collinq
Hi, @SAGUILAR
Based on your description, I created a simple dataset:
You mentioned that the column you are currently showing is a metric, so I simply created a measure as follows:
In order to sum only the positive values in total, I created a measure using the following DAX expression while keeping the original measure:
MEASURE =
IF (
ISINSCOPE ( 'Table'[Id] ),
'Table'[Amounts],
SUMX ( FILTER ( 'Table', 'Table'[Amounts] >= 0 ), 'Table'[Amounts] )
)
Here are the results:
I've uploaded the PBIX file I used this time below.
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you @collinq
Hi, @SAGUILAR
Based on your description, I created a simple dataset:
You mentioned that the column you are currently showing is a metric, so I simply created a measure as follows:
In order to sum only the positive values in total, I created a measure using the following DAX expression while keeping the original measure:
MEASURE =
IF (
ISINSCOPE ( 'Table'[Id] ),
'Table'[Amounts],
SUMX ( FILTER ( 'Table', 'Table'[Amounts] >= 0 ), 'Table'[Amounts] )
)
Here are the results:
I've uploaded the PBIX file I used this time below.
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey @SAGUILAR ,
I think that formula in Dax would be something like "CALCULATE(SUM('Table'[field],'Table'[field] >0)"
Let us know if that works to do what you want.
Proud to be a Datanaut!
Private message me for consulting or training needs.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 56 | |
| 56 | |
| 35 | |
| 18 | |
| 14 |