Forum Discussion
arun90
2 years agoHelper I
How to get opening date
my data has 3 dates(01-01-2023,02-01-2023,03-01-2023) in row but user select slicer in date between (02-01-2023 to 03-01-2023) then 01-01-2023 has to show 'opening' else 02-01-2023, 03-01-2023 in pow...
- 2 years ago
pls see the attachment below
Appreciate your kudos. if my solution is helpful, pls mark it as an accepted solution. Thanks
ryan_mayu
2 years agoSuper User
if we select 1/3 - 1/6 ,what the expected output. pls also provide it
- ryan_mayu2 years agoSuper User
pls see the attachment below
- arun902 years agoHelper I
ryan_mayu my real data exp for opening=(
Opening1 = if('STOCKVALUE'[DOCDATE]=min('STOCKVALUE'[DOCDATE]),STOCKVALUE[recqty]-STOCKVALUE[issqty],sumx(FILTER('STOCKVALUE','STOCKVALUE'[DOCDATE]<EARLIER('STOCKVALUE'[DOCDATE])),STOCKVALUE[recqty])-sumx(FILTER('STOCKVALUE','STOCKVALUE'[DOCDATE]<EARLIER('STOCKVALUE'[DOCDATE])),STOCKVALUE[issqty])))
open=
if(MIN('STOCKVALUE'[DOCDATE])=MIN('Calander1'[Date])-1,sum(STOCKVALUE[Opening1]),0) but not working this exp - ryan_mayu2 years agoSuper User
you are welcome
- ryan_mayu2 years agoSuper User
pls update the sample data and expected output. you can directly paste the sample data in the reply
- ryan_mayu2 years agoSuper User
create a table which contains continous days.
Table 3 = CALENDAR(min('Table'[Opening date]),max('Table'[Opening date]))then get the recqty and issueqty data from orignial tableissueqty = RELATED('Table'[issueqty])Recqty = RELATED('Table'[Recqty])then do the similar work on the new table to get the expected outputpls see the attachment below - ryan_mayu2 years agoSuper User
pls see the attachment below
Appreciate your kudos. if my solution is helpful, pls mark it as an accepted solution. Thanks