Forum Discussion

netanel's avatar
netanel
Post Prodigy
4 years ago
Solved

Matrix Filed Parmetrs

Hey All! Maybe you can help me I have an interesting case for you In Excel my users filter a table with 2 columns but the filters are on the column. Therefore each column in Excel can vary depend...
  • netanel's avatar
    netanel
    4 years ago

     Hey All,

    I found the solution
    Multiply the DIMs we want to filter
    And use of Removefilter
    It looks like this:

    Column A = CALCULATE(SUM(Epm_Fct[Amount_N]),
    REMOVEFILTERS('EpmScenarioDescAll'[Scenario]),
    REMOVEFILTERS('EpmVersionDescAll'[Version]),
    REMOVEFILTERS(EpmPlanElement[PlanElementLvl1],EpmPlanElement[PlanElementLvl2],EpmPlanElement[PlanElementLvl3],EpmPlanElement[PlanElementLvl3],EpmPlanElement[PlanElementLvl5],EpmPlanElement[PlanElementLvl6],EpmPlanElement[PlanElementLvl7],EpmPlanElement[PlanElementLvl99] ),
    REMOVEFILTERS(Dim_Time[DateVal].[Date],'Dim_Time'[DateVal].[Day],Dim_Time[DateVal].[MonthNo],Dim_Time[DateVal].[Month],Dim_Time[DateVal].[QuarterNo],Dim_Time[DateVal].[Quarter],Dim_Time[DateVal].[Year]))

    Column B = CALCULATE(SUM(Epm_Fct[Amount_N]),
    REMOVEFILTERS('EpmScenarioDescAll (2)'[Scenario]),
    REMOVEFILTERS('EpmVersionDescAll (2)'[Version]),
    REMOVEFILTERS('EpmPlanElement (2)'[PlanElementLvl1],'EpmPlanElement (2)'[PlanElementLvl2],'EpmPlanElement (2)'[PlanElementLvl3],'EpmPlanElement (2)'[PlanElementLvl4],'EpmPlanElement (2)'[PlanElementLvl5],'EpmPlanElement (2)'[PlanElementLvl6],'EpmPlanElement (2)'[PlanElementLvl7],'EpmPlanElement (2)'[PlanElementLvl99] ),
    REMOVEFILTERS('Dim_Time (2)'[DateVal].[Date],'Dim_Time (2)'[DateVal].[Day],'Dim_Time (2)'[DateVal].[MonthNo],'Dim_Time (2)'[DateVal].[Month],'Dim_Time (2)'[DateVal].[QuarterNo],'Dim_Time (2)'[DateVal].[Quarter],'Dim_Time (2)'[DateVal].[Year]))

    If you have a better solution I would love to hear
    good luck!