Forum Discussion

QLDPETER10's avatar
QLDPETER10
New Member
4 years ago
Solved

Can´t display the visual

Hi everyone,   I hope this message finds all of you fine,   I´m trying to do a specific report, but I stopped here because of this issue on a measure. It work for a specific case but doesn´t work...
  • v-luwang-msft's avatar
    4 years ago

    Hi QLDPETER10 ,

    According your dax ,I think your error is on coord<>"8445".Because when using Allselected, the slicer selects multiple values, the result is equivalent to a collection, which cannot be equated directly, a conversion is required, see the example below.

    Refer the below sample:

    test =
    VAR ALLSELECTED1 =
        CONCATENATEX ( ALLSELECTED ( 'Table' ), 'Table'[Type], "," )
    RETURN
        IF (
            ISERROR ( SEARCH ( "A", ALLSELECTED1 ) ) = FALSE (),
            CALCULATE ( SUM ( 'Table'[Value] ), ALL ( 'Table' ) ),
            CALCULATE ( SUM ( 'Table'[Value] ), ALLSELECTED ( 'Table' ) )
        )

    Output:

     

    To leanr more  details ,refer:

    CONCATENATEX

     

    Did I answer your question? Mark my post as a solution!


    Best Regards

    Lucien