Forum Discussion
mamunxv8
2 years agoHelper I
Date Wise Data Show
Hi, I want to make a table like that. The problem is that I can't show the data with column-wise date. I don't want any calculation here; I want to show the last two entry date data. Can I...
- 2 years ago
Thanks for the help. I found out different ways to set two days parallel. Also, as I want, find out the last two days from the dataset.
Here is Dax formula:
LastDayData =VAR MaxDate = CALCULATE(MAX('Tablename'[Date]), ALL('Tablename'[Date]))RETURNCALCULATE(SUM('Tablename'[Close]), 'Tablename'[Date] = MaxDate)SecondLastDayData =VAR SecondLastDate = CALCULATE(MAX('Tablename'[Date]), FILTER(ALL('Tablename'[Date]), 'Tablename'[Date] < MAX('Tablename'[Date])))RETURNCALCULATE(SUM('Tablename'[Close]), 'Tablename'[Date] = SecondLastDate)Thanks
mahenkj2
2 years agoSolution Sage
Hi,
I created a sample which gives output as below:
Please find a demo file here. I have used multiple power query transformations here, you need to test if it works in your scenarion. Please ask questions as may be needed to clarify.
https://drive.google.com/file/d/1AAcvPL3QSCT6C5-F2BmClDE_KWy8Elio/view?usp=sharing
Hope it helps.
nhathuoctinhyeu
2 years agoNew Member
Thank you