Solved! Go to Solution.
Hi @shakobe1 ,
You can try the following code I modified:
SKU sales total (Date 1) =
VAR startdate = CALCULATE(min('Date'[Calendar Date]),ALL('Independent Date'))
VAR enddate = CALCULATE(MAX('Date'[Calendar Date]),ALL('Independent Date'))
return
CALCULATE(Average('Measure Table'[Sales Line Quantity]), ALL('Independent Date'[Calendar Date]), DATESBETWEEN('Independent Date'[Calendar Date],startdate,enddate))
If the above code does not meet your requirements, can you provide some test data and sample expected results?
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.
Hi Yolo! unfortunately it dodnt work. I attached a screen shot
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
User | Count |
---|---|
111 | |
63 | |
47 | |
30 | |
27 |
User | Count |
---|---|
141 | |
95 | |
80 | |
46 | |
41 |