Forum Discussion

PierreL69's avatar
PierreL69
Helper IV
9 months ago
Solved

Calculation groups & Column Hierarchy

Hi the community, Not sure if I posted in the right section. Anyway I opening this conversation beacuse I did not find any related topic through the research I did.   I have created a calculation...
  • Ahmed-Elfeel's avatar
    9 months ago

    Hi PierreL69,

    I have 3 Approaches For you 😀❤️

     

    First One : Enable "Show Items with No Data"

    • Select your matrix visual

    • Go to Format paneValues section

    • Turn ON "Show items with no data"

    • This often forces Calculation Groups to appear at all levels

    Second Approach: 

    • Instead of using the automatic date hierarchy, add columns individually, In your matrix columns field:
    Year
    Quarter  
    Month
    Calculation Group
    • This creates a flat structure where the Calculation Group is always visible at every level.

    Third Approach : 

    • Modify your calculation items to handle different hierarchy levels (DAX):

    Sales Amount Calc = 
    SWITCH(TRUE(),
        ISINSCOPE('Date'[Month]), [Sales Amount],
        ISINSCOPE('Date'[Quarter]), [Sales Amount],
        ISINSCOPE('Date'[Half]), [Sales Amount],
        [Sales Amount]
    )

     

    Bonus Approach : 

    • Create a field parameter for your time hierarchy and use it alongside the Calculation Group in columns.
    if this post helps, then I would appreciate a thumbs up and mark it as the solution to help the other members find it more quickly.