Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Conditionnal Number Format

Good evening,   I'm working on a dynamic column chart which displays a specific metric depending on the option selected in a separate slicer. Here is the measure used in the Y-Axis to get this resu...
  • parry2k's avatar
    2 years ago

    Anonymous this should be your measure (in my opinion)

     

    Dynamic Title - progression annuelle =
    VAR SelectedValue1 =
        SELECTCOLUMNS (
            SUMMARIZE ( Parameter, Parameter[Parameter], Parameter[Parameter Fields] ),
            Parameter[Parameter]
        )
    VAR SelectedValue2 =
        SELECTEDVALUE ( 'Comparables Database - Power BI Dashboard'[Sector] )
    RETURN
        SWITCH (
            TRUE (),
            SelectedValue1 = "EV / Industry Metric",
                SWITCH (
                    TRUE (),
                    SelectedValue2 = "Infrastructure", "EV / MW",
                    SelectedValue2 = "Agriculture", "EV / Hectare",
                    "EV / Industry Metric"
                ),
            SelectedValue1 = "Discount Rate", "Discount Rate",
            SelectedValue1 = "EV / EBITDA LTM", "EV / EBITDA LTM",
            SelectedValue1 = "EV / EBITDA NTM", "EV / EBITDA NTM",
            SelectedValue1 = "EV / Revenue", "EV / Revenue",
            SelectedValue1 = "EV", "EV (in M$)"
        )