Forum Discussion

PaulDBrown's avatar
PaulDBrown
Icon for Community Champion rankCommunity Champion
9 years ago
Solved

Combining Past Sales and Projected Sales

Good Morning everyone,   I would really appreciate some guidance as to how to resolve my current issue. I have a model including sales and projected sales tables, with a period table relating both ...
  • Anonymous's avatar
    Anonymous
    9 years ago

    Hi PaulDBrown,

     

    You can try to use below measure to deal with the total row calculate:

     

    Total Measure(Row Count) = 
    if(COUNT('Table'[Date])=COUNTX(ALL('Table'),[Date]),
     "All", 
     if(COUNT('Table'[Date])=COUNTX(FILTER(ALL('Table'),[Date].[Year]=MAX([Date].[Year])),[Date]),
    	 "Year Level Total",
    	 if(COUNT('Table'[Date])=COUNTX(FILTER(ALL('Table'),[Date].[Year]=MAX([Date].[Year])&&[Date].[QuarterNo]=MAX([Date].[QuarterNo])),[Date]),
    		 "Quarter Level Total",
    		 	 if(COUNT('Table'[Date])=COUNTX(FILTER(ALL('Table'),[Date].[Year]=MAX([Date].[Year])&&[Date].[QuarterNo]=MAX([Date].[QuarterNo])&&[Date].[MonthNo]=MAX([Date].[MonthNo])),[Date]),
    		 	"Month Level Total","Day Level Total"
    		 ))))

     

     

    You only need to input your formula at the specify "total level" to config the calculation on total level.

     

    Notice: use your columns to replace the different hierarchy level column name.

     

    If above not help, you feel free to post here.

     

    Regards,

    Xiaoxin Sheng