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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have summary table with totals by clients
Client, Total
Client 1, 100
Client 2, -250
Client 3, 50
Total is a measure that takes in to account different busines logics.
How to create measure, that shows only positive total measure values by client dimension?
So, I would be able to have two seperate cards:
Card 1: Client 1 + Client 3 = 150 (so total for positive clients)
Card 2: Client 2 = - 250 (so total for negative clients)
Currently pulling Total measure into cards, it results in net Total, so = 100
Thanks!
Solved! Go to Solution.
Ok. In that case, try creating measures equivalent to:
+ve values =
VAR _table =
ADDCOLUMNS ( VALUES ( 'Table'[Client] ), "_Value", [Sum Value] )
RETURN
CALCULATE ( [Sum Value], FILTER ( _table, [_Value] > 0 ) )
-ve values =
VAR _table =
ADDCOLUMNS ( VALUES ( 'Table'[Client] ), "_Value", [Sum Value] )
RETURN
CALCULATE ( [Sum Value], FILTER ( _table, [_Value] < 0 ) )
Proud to be a Super User!
Paul on Linkedin.
Create measures for each group of values to use in the card visuals using the equivalent to the following (in my example, the base measure is a simple SUM, but use your own measure:
+ve values =
CALCULATE ( [Sum Value], FILTER ( 'Table', [Sum Value] > 0 ) )
-ve values =
CALCULATE([Sum Value], FILTER('Table', [Sum Value] <0))
to get:
Proud to be a Super User!
Paul on Linkedin.
Summary table is a visual "table", not an actual table
Actual table:
Client 1, Asset 1, 200
Client 1 Asset 2, -100
Client 2, Asset 1, 500
Client 2, Asset 2, -750
Client 3, Asset 1, 50
So I cannot sum values by "is value>0 or <0."
I need to sum them by client dimension.
Positive amount = If on client level amount is > 0 then amount else 0
Ok. In that case, try creating measures equivalent to:
+ve values =
VAR _table =
ADDCOLUMNS ( VALUES ( 'Table'[Client] ), "_Value", [Sum Value] )
RETURN
CALCULATE ( [Sum Value], FILTER ( _table, [_Value] > 0 ) )
-ve values =
VAR _table =
ADDCOLUMNS ( VALUES ( 'Table'[Client] ), "_Value", [Sum Value] )
RETURN
CALCULATE ( [Sum Value], FILTER ( _table, [_Value] < 0 ) )
Proud to be a Super User!
Paul on Linkedin.
Worked! Thanks a lot! Cheers!
Negative = if(total <=0,total)
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!