Forum Discussion

LAMLAM's avatar
LAMLAM
Frequent Visitor
7 years ago
Solved

Total not showing (DAX Measure)

Hi,

I'm having trouble with a measure not showing any total in tables and other visuals. The idea with the measure is to have a running total for projects that are open given the selected period (month). I'm pretty sure that it is the date filtering happening on the project dimension in the measure that interferes with the total.

On the row-level the measure works just fine...

 

Measure= 

CALCULATE(
   SUM('Finance DW_FactFinance'[Value]);
      'Shared DW_DimVersion'[VersionName]="Actual";
      DATESBETWEEN(DimDate[Date];DATE(1900;1;1);MAX(DimDate[Date]));
      FILTER(DimProject;
         MAX(DimDate[Date])>=MAX(DimProject[StartDate]) &&
         OR(
            MAX(DimDate[Date])<=MAX(DimProject[ActualEndingDate]);
            MAX(DimProject[ActualEndingDate])=BLANK())))
 
I have tried to include the measure in a SUMX(SUMMARIZE(...),Measure) syntax, but either this is not possible for this case or I don't have the logic down.
Anyone with some ideas or advice?
Best regards

8 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Try wrapping your function with SUMX:

    SUMX ( 
    VALUES( T [C] ), //whatever is on rows to sum up
    CALCULATE(
       SUM('Finance DW_FactFinance'[Value]);
          'Shared DW_DimVersion'[VersionName]="Actual";
          DATESBETWEEN(DimDate[Date];DATE(1900;1;1);MAX(DimDate[Date]));
          FILTER(DimProject;
             MAX(DimDate[Date])>=MAX(DimProject[StartDate]) &&
             OR(
                MAX(DimDate[Date])<=MAX(DimProject[ActualEndingDate]);
                MAX(DimProject[ActualEndingDate])=BLANK())))
               )
    • LAMLAM's avatar
      LAMLAM
      Frequent Visitor

      Hi Anonymous ,

      No luck, unfortunately.

      I don't know if it helps to say that my data model looks like this. Basically, I wanna be able to filter on a specific organization, which then only returns a given set of projects, which then again filters my fact. At the same time I want to only have open projects, hence my last 5 lines in the measure.

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        any chance you can load some sample data?