Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
4 years ago
Solved

Multi-format numbers in the same column

Dear community very good afternoon, I have the following problem: I have a numeric type column called Value Month, what I need is for the prensentaod value in the table to have its corresponding for...
  • Hariharan_R's avatar
    4 years ago

    Hi

    Try like below.

    Result =
    VAR _Type =
    SELECTEDVALUE ( 'Table'[Type] )
    VAR _value =
    SUM ( 'Table'[Value] )
    RETURN
    SWITCH (
    TRUE (),
    CONTAINSSTRING ( _Type, "$" ), FORMAT ( _value, "$ #,00" ),
    CONTAINSSTRING ( _Type, "Days" ), FORMAT ( _value, "#,00" ),
    CONTAINSSTRING ( _Type, "%" ), FORMAT ( _value, "#.00 %" )
    )

    Thanks

    Hari

    Did I answer your question? Then please mark my post as the solution.
    If I helped you, click on the Thumbs Up to give Kudos.


    My Blog :: YouTube Channel :: My Linkedin