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!View all the Fabric Data Days sessions on demand. View schedule
Solved! Go to Solution.
You can speed it up by storing values that you use multiple times in variables
ABC =
VAR ChosenParameter =
SELECTEDVALUE ( Parameter[Parameter], 1 )
VAR InvoiceSum = [Sumx Invoice]
VAR MainCoverageRate = [Main customer coverage rate]
VAR _scope =
IF ( ISINSCOPE ( '4327 Main customer'[Name] ), 1, 0 )
VAR _Invoice =
IF (
InvoiceSum > DIVIDE ( 600000, ChosenParameter ),
"A",
IF ( InvoiceSum > DIVIDE ( 200000, ChosenParameter ), "B", "C" )
)
VAR _coverage_rate =
IF ( MainCoverageRate > 0.5, "A", IF ( MainCoverageRate > 0.1, "B", "C" ) )
RETURN
IF ( _scope = 1 && InvoiceSum > 0, _Invoice & _coverage_rate, BLANK () )
ABC Correct =
VAR ABC = [ABC]
VAR _selected =
ALLSELECTED ( ABC[ABC] )
RETURN
IF ( ISBLANK ( ABC ), BLANK (), IF ( ABC IN _selected, 1, 0 ) )
You can speed it up by storing values that you use multiple times in variables
ABC =
VAR ChosenParameter =
SELECTEDVALUE ( Parameter[Parameter], 1 )
VAR InvoiceSum = [Sumx Invoice]
VAR MainCoverageRate = [Main customer coverage rate]
VAR _scope =
IF ( ISINSCOPE ( '4327 Main customer'[Name] ), 1, 0 )
VAR _Invoice =
IF (
InvoiceSum > DIVIDE ( 600000, ChosenParameter ),
"A",
IF ( InvoiceSum > DIVIDE ( 200000, ChosenParameter ), "B", "C" )
)
VAR _coverage_rate =
IF ( MainCoverageRate > 0.5, "A", IF ( MainCoverageRate > 0.1, "B", "C" ) )
RETURN
IF ( _scope = 1 && InvoiceSum > 0, _Invoice & _coverage_rate, BLANK () )
ABC Correct =
VAR ABC = [ABC]
VAR _selected =
ALLSELECTED ( ABC[ABC] )
RETURN
IF ( ISBLANK ( ABC ), BLANK (), IF ( ABC IN _selected, 1, 0 ) )
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!