Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
10 months ago
Solved

Create data group to simplify visual

Hi everyone,    I would like to organize some formulas in a matrice because it's difficult to analyse this one with many field.  Is it possible to regroup like a "bloc" different formulas ?  Here...
  • v-sshirivolu's avatar
    10 months ago

    Hi Anonymous ,
    Thanks for reaching out to Microsoft Fabric Community Forum.
    Organize Your Formulas/Blocks Efficiently with Field Parameters

    I have tried this repro on my side and got results. Please check it, and if you encounter any issues, let me know.
    Created a simple table
    Year Sales Budget
    2024 100 120
    2025 150 130

    Created Measures Individually

    S_2025 = CALCULATE(SUM(Data[Sales]), Data[Year] = 2025)
    Var_S_vs_S_1_2025 = [S_2025] - SUM(Data[Budget])
    Var_S_vs_S_2_2025 = DIVIDE([S_2025] - SUM(Data[Budget]), SUM(Data[Budget]))

    These measures serve as the formulas to be grouped.

    Created Field Parameters

    Navigate to Modeling - New Parameter - Fields.

    In the dialog box, select the measures to group:

    S_2025

    Var_S_vs_S_1_2025

    Var_S_vs_S_2_2025

    Rename the parameter to Measure Groups and Create. Power BI will generate:

    A slicer visual featuring your parameter , new DAX table named Measure Groups.

    Added Matrix visual.

    Add Year to Rows.

    Include the Measure Groups field parameter in Values.

    This setup allows dynamic grouping and switching between blocks. Maintenance is straightforward, simply update the field parameter when new measures are introduced.