Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Compare Month vs Previous including Month in dimension

Hello,

i'm trying to compare month vs previous month with a simple control.

-- Intérêts compris --
Période NROTIT PM NETTE en partsMvts en partsFrais S/E en partsContrôle
Total47124,75110823446,261316-64,615371-23743,105163
11-2009197120,000000-38,482464-11,880941-50,363405
10-20091971223432,009350-232,071860-28,660548-23692,741758
09-20091971223692,74175823716,815640-24,073882-0,000000


I have a stock at the end of a month (PM Nette en parts) and movements during a month.

I need to control if (PM NETTE en parts 09-2009)+(Mvts en parts 10-2009)+(Frais S/E en parts)-(PM NETTE en parts 10-2009) = 0

Période is a calculated dimension: =timestamp(monthname(DATE_VALEUR),'MM-YYYY')

I have try with this, but does'nt work.

=sum(if (InMonthToDate (DATE_VALEUR, DATE_VALEUR, -1), PM_PARTS_NET))

+ column(2)+column(3)

-sum(if (InMonthToDate (DATE_VALEUR, DATE_VALEUR, 0), PM_PARTS_NET))

Can someone help me?

Thanks

Laurent

0 Replies