Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Solved! Go to Solution.
@phyconia , Are you looking for something like this
Car Inital =
IF(
ISFILTERED('Calendar'[Date]),
VAR __Firstdate = FIRSTDATE('Calendar'[Date])
VAR __Lastdate = LASTDATE('Calendar'[Date])
RETURN
CALCULATE(AVERAGEX(VALUES('Calendar'[Date]),CALCULATE(SUM('master_csv'[Car]))) ,
DATESBETWEEN('Calendar'[Date],DATEADD(__Firstdate, -90, DAY),__Lastdate) )
@phyconia check out this article: https://www.daxpatterns.com/standard-time-related-calculations/
Read it carefully and it will give you what you need and much more
Thank you I have already been through this article to no avail. thank you for your responce 🙂
@phyconia , Are you looking for something like this
Car Inital =
IF(
ISFILTERED('Calendar'[Date]),
VAR __Firstdate = FIRSTDATE('Calendar'[Date])
VAR __Lastdate = LASTDATE('Calendar'[Date])
RETURN
CALCULATE(AVERAGEX(VALUES('Calendar'[Date]),CALCULATE(SUM('master_csv'[Car]))) ,
DATESBETWEEN('Calendar'[Date],DATEADD(__Firstdate, -90, DAY),__Lastdate) )
@phyconia ok, I'm not sure what you are trying to do. Can you share the file and hard code in a text box the result you want to get and the logic behind it.
P.S. will appreciate your kudos 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |