Forum Discussion
Totals for year showing wrong value
HI MrMP ,
Can you please share the measures you use for the columns?
Best regards
Michael
Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
1. Balance Sheet Field -
VAR lastquarter = MAX('Calendar'[Quarter Number])
VAR lastyear = MAX('Calendar'[Year])
RETURN
SWITCH(TRUE(),
ISINSCOPE('Calendar'[Quarter Number]), Sum(Balance Sheet Field),
ISINSCOPE('Calendar'[Year]), CALCULATE(Sum(Balance Sheet Field)), FILTER('Calendar','Calendar'[Quarter Number]=lastquarter && 'Calendar'[Year]=lastyear)))2. PnL Field -
SWITCH(TRUE(),
ISINSCOPE('Calendar'[Quarter Number]),Sum(Revenue Field) ,
ISINSCOPE('Calendar'[Year]),SUMX(SUMMARIZE('Calendar','Calendar'[Year],'Calendar'[Quarter Number]),sum(Revenue Field) ),
SUMX(SUMMARIZE('Calendar','Calendar'[Year],'Calendar'[Quarter Number]),sum(Revenue Field) ))
Lowest granularity of the calendar is Quarter.
Thank you!!!
- Mikelytics3 years ago
Resident Rockstar
Hi MrMP
Can you please try to build a third measure like the following?
Result = SUMX( VALUES('Calendar'[Quarter Number]), [PnL Field] + [Balance Sheet Field] )Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
-----------------------------------------------------
- MrMP3 years ago
Helper III
- Mikelytics3 years ago
Resident Rockstar
ok, I think I know why,
Please try the following
Result = [Balance Sheet Field] + SUMX( VALUES('Calendar'[Quarter Number]), [PnL Field] )Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
-----------------------------------------------------