The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I am looking to improve the performance of a DAX measure that I am using in a report. Is there a better way to filter to only evaluate on rows where CY TTM Production <> 0 than how I am doing it?
The measure is:
Solved! Go to Solution.
Hi @Anonymous
please try
=
SUMX (
tblDim_Account,
VAR CYTTMProduction = [CY TTM Production]
VAR CYTTMWIP = [CY TTM WIP]
RETURN
IF (
ROUND ( CYTTMProduction, 2 ) = 0,
0,
( ( CYTTMWIP - [TTM Change in Reserve] ) + ( ( CYTTMProduction - ( CYTTMWIP ) ) * [CY TTM Billed Realization] ) )
)
)
Hi @Anonymous
please try
=
SUMX (
tblDim_Account,
VAR CYTTMProduction = [CY TTM Production]
VAR CYTTMWIP = [CY TTM WIP]
RETURN
IF (
ROUND ( CYTTMProduction, 2 ) = 0,
0,
( ( CYTTMWIP - [TTM Change in Reserve] ) + ( ( CYTTMProduction - ( CYTTMWIP ) ) * [CY TTM Billed Realization] ) )
)
)
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |