Forum Discussion

Thigs's avatar
Thigs
Helper IV
1 year ago
Solved

Projection based on numeric parameters

Hi all! I've been charged with creating a flexible business case tool, where the business users can input some items, get a cost, use a growth rate, and see how much it would cost year over year.  ...
  • v-tejrama's avatar
    v-tejrama
    1 year ago

    Hi Thigs ,

    To get more accurate projections, I’d suggest using a dynamic DAX calculation that responds to your input parameter. You can use something like SWITCH() or IF() in your measure to handle different values of the parameter.

    For example:

    Projected Value =
    SWITCH(
    TRUE(),
    [Parameter] = 1, [Value] * 1.1,
    [Parameter] = 2, [Value] * 1.2,
    [Parameter] = 3, [Value] * 1.3,
    [Value]
    )


    This way, the projections will automatically adjust depending on the input selected. It’s a flexible method and easy to maintain if you plan to add more conditions later. Also, just a quick tip if you're working with a large dataset, try to avoid using calculated columns unless necessary. Measures are generally more performance-friendly in such cases.
    Please feel free to come back if you have any queries.

    Thank you.