Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi
I have to convert below sql to power bi measure
SUM( CASE WHEN ([CRD-PF]* [OCD-PF] = 0 ) then [PO Remaining QTY] ELSE 0 END )
POWER BI ,
getting error - The expression contains multiple columns, but only a single column can be used in a True/False expression that is used as a table filter expression.
please suggest a workaround.
thanks,
Viji
Solved! Go to Solution.
@viji_rajaraman , Try like
Past Due = CALCULATE(SUM (Query1[PO Remaining QTY]),filter( Query1, (Query1[OCD-PF] * Query1[CRD-PF])= 0))
Past Due = SUMX( Query1, IF ( Query1[OCD-PF] * Query1[CRD-PF] = 0, Query1[PO Remaining QTY] ) )
@viji_rajaraman , Try like
Past Due = CALCULATE(SUM (Query1[PO Remaining QTY]),filter( Query1, (Query1[OCD-PF] * Query1[CRD-PF])= 0))
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 84 | |
| 49 | |
| 37 | |
| 30 | |
| 30 |