Forum Discussion

admin11's avatar
admin11
Icon for Memorable Member rankMemorable Member
5 years ago

How to modify expression when not select date it display LYTD = 448.69M ?

Hi All & Ashish_Mathur 

 

_LYTD EXP_V1
= CALCULATE(CALCULATE(GL[AMOUNT],DATESYTD(dateadd('Date'[Date],-1,year),"12/31")), GL[1_EXP] = "EXP")

 

_LYTD EXP_V1 :

when Not press 2021 Feb return full year sales 1.91bn is wrong. it should return Jan-Feb 2021 amount ,

when i select Feb 2021 it display 488.69M is correct..

when i select Jan 2021 it display 376.43M is correct..

when i not select any date , How to make it display 448.69M ?

 

_LYTD EXP V2 = CALCULATE([AMOUNT],GL[1_EXP]="EXP",DATESBETWEEN('Date'[Date],date(year(today())-1,1,1),eomonth(today(),-13)+1))

 

_LYTD EXP V2 :

when not select ant date , it display 488.69M is correct , when select 2021 Jan it display 488.69M is wrong.

 

https://www.dropbox.com/s/24oyrd6w3v05jmw/PBT_V2021_365%20How%20to%20make%20when%20not%20sel%20date%20display%20YTD%20amount.pbix?dl=0

 

Above link is my PBI file 

 

Paul

 

4 Replies