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
This appears to be a bug in the DAX generated by Smart Narratives (within a text box).
Measure displays properly when in a Card visual, but not in Smart Narrative.
See minimally-reproduced sample .pbix attached.
Table =
{ ( 1, "A" ), ( 2, "A" ), ( 3, "B" ), ( 4, "B" ), ( 5, "C" ), ( 6, "C" ) }
Value1Value2
| 1 | A |
| 2 | A |
| 3 | B |
| 4 | B |
| 5 | C |
| 6 | C |
SelectedValue2 = SELECTEDVALUE('Table'[Value2])
SelectedValue2_Switch =
VAR _CountValue2s =
COUNTROWS ( VALUES ( 'Table'[Value2] ) )
VAR _Result =
SWITCH (
TRUE (),
_CountValue2s = 1, SELECTEDVALUE ( 'Table'[Value2] ),
_CountValue2s > 1, "Multiple",
_CountValue2s = 0, BLANK ()
)
RETURN
_Result
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.