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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I was trying to convert this dax column in to measure which I'm failing, Can anyone of you help me on this?
IF('Table A'[Customer PO]=BLANK(),BLANK(),
CALCULATE(SUM('Table A'[Total Order]),
FILTER('Table A',
'Table A'[Customer PO]=EARLIER('Table A'[Customer PO])),
FILTER(
'Table A',
'Table A'[Order Status]<>"0- Cancelled"),
FILTER('Table A','Table A'[Category]<>"TAPA"),
FILTER('Table A','Table A'[Order Status]<>"1 - Spoils"),
FILTER('Table A','Table A'[Order Status]<>"2 - Return")))
TIA
Solved! Go to Solution.
@vally57 Maybe something like this:
Measure =
VAR __PO = MAX('Table A'[Customer PO])
VAR __Result =
IF(__PO = BLANK(),
BLANK(),
CALCULATE(
SUM('Table A'[Total Order]),
ALL('Table A'),
FILTER('Table A', 'Table A'[Customer PO]=__PO),
FILTER('Table A', 'Table A'[Order Status]<>"0- Cancelled"),
FILTER('Table A','Table A'[Category]<>"TAPA"),
FILTER('Table A','Table A'[Order Status]<>"1 - Spoils"),
FILTER('Table A','Table A'[Order Status]<>"2 - Return")
)
)
RETURN
__Result
or
Measure =
VAR __PO = MAX('Table A'[Customer PO])
VAR __Table = FILTER(ALL('Table A'), [Customer PO] = __PO && [Order Status] <> "0- Cancelled" && [Category <> "TAPA" && [Order Status] <> "1 - Spoils" && [Order Status] <> "2 - Return")
VAR __Result = SUMX(__Table, [Total Order])
RETURN
__Result
@vally57 Maybe something like this:
Measure =
VAR __PO = MAX('Table A'[Customer PO])
VAR __Result =
IF(__PO = BLANK(),
BLANK(),
CALCULATE(
SUM('Table A'[Total Order]),
ALL('Table A'),
FILTER('Table A', 'Table A'[Customer PO]=__PO),
FILTER('Table A', 'Table A'[Order Status]<>"0- Cancelled"),
FILTER('Table A','Table A'[Category]<>"TAPA"),
FILTER('Table A','Table A'[Order Status]<>"1 - Spoils"),
FILTER('Table A','Table A'[Order Status]<>"2 - Return")
)
)
RETURN
__Result
or
Measure =
VAR __PO = MAX('Table A'[Customer PO])
VAR __Table = FILTER(ALL('Table A'), [Customer PO] = __PO && [Order Status] <> "0- Cancelled" && [Category <> "TAPA" && [Order Status] <> "1 - Spoils" && [Order Status] <> "2 - Return")
VAR __Result = SUMX(__Table, [Total Order])
RETURN
__Result