Forum Discussion
MAX function not working as expected
Hi Anonymous,
Even DATEADD is not working. Please see the attached link for pbix file for your refrence(FYI I am not able to attach the file here, please see if you can access it from here or let me know if you can guide me how to add attachment).
Regards,
Aakash Ladi
Hi Aakash_Ladi
The link cannot open, you can upload the file to onedrive, then share it.
Best Regards!
Yolo Zhu
- Aakash_Ladi3 years agoRegular Visitor
Hi Anonymous ,
Here is the link to uploaded file-
https://drive.google.com/file/d/1ojEVvPvcQhoaayPd-2zaQrrlLSDX_jEI/view?usp=drivesdk
Let me know if you need access
Regards,
Aakash Ladi
- Anonymous3 years agoNot applicable
- Aakash_Ladi3 years agoRegular Visitor
Hi Anonymous,
Try this link-
Sample file.pbixor This - https://www.dropbox.com/scl/fi/ypq64mcknnmsj23d4ouu6/Sample-file.pbix?rlkey=ve98q78mfd8p4v4lven2ism4x&dl=0
Regards,Aakash
- Anonymous3 years agoNot applicable
Hi Aakash_Ladi
I change your fulldate column first
Order Date full = DATE(LEFT([OrderDate],4),MID([OrderDate],5,2),RIGHT([OrderDate],2))Then change the relationship
Then change the PP measure
Qty (PP) = var a= EOMONTH([PointDate],-13)+DAY([PointDate]) return CALCULATE(SUM(factResSummary[Qty]), a>= factResSummary[EffectiveDate],a <= factResSummary[ExpiredDate],DATEADD(DimCalendar[FullDate],-1,YEAR))Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Aakash_Ladi3 years agoRegular Visitor
Hi Anonymous ,
Thanks for replying. I believe this will work. Could you please explain what was wrong with the earlier approach?
Regards,
Aakash Ladi