Forum Discussion

Jo_Kas's avatar
Jo_Kas
Regular Visitor
7 years ago

MEASURE FOR YEAR - 2

Hello everyone !
I've recently started on PowerBi. So i don't know "DAX" very well... Could you help me ?

 

I'm trying to create several measures in my PowerBi reports :
Do you have any idea how:
1) Calculate the year - 2 of a turnover
I created this measure but 0 result...

TURNOVER TOTAL YEAR - 2 = CALCULATE(SUM(LIGNES_V[CA TOTAL]); PARALLELPERIOD('Date'[Date];-2;YEAR)) 

For the year - 1 I used and it works !  

TURNOVER TOTAL YEAR - 1 = CALCULATE(SUM(LIGNES_V[CA TOTAL]);SAMEPERIODLASTYEAR('Date'[Date]))


2) I also would like to define in my graphs the following data for:
- 0 to 1 month
-1 to 2 months
- 2 to 4 months
- 4 months or more
Thanks in advance


Yours truly

No RepliesBe the first to reply