Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi Expert
see sample file
How could calculate the sales for the next up coming 5 weeks based on the sample file. Without selecting a date on the data slicer?
Solved! Go to Solution.
Hi @Anonymous ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) If you want sales on that day five weeks in the future from the current date, you can create a measure:
Measure = CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),'Table'[date]=MAX('Table'[date])+35))
If you want total sales from the current date until the next five weeks, you can create a measure:
Measure 2 = CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),'Table'[date]>=MAX('Table'[date]) && 'Table'[date]<=MAX('Table'[date])+35))
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) If you want sales on that day five weeks in the future from the current date, you can create a measure:
Measure = CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),'Table'[date]=MAX('Table'[date])+35))
If you want total sales from the current date until the next five weeks, you can create a measure:
Measure 2 = CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),'Table'[date]>=MAX('Table'[date]) && 'Table'[date]<=MAX('Table'[date])+35))
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
129 | |
78 | |
76 | |
60 | |
53 |
User | Count |
---|---|
164 | |
86 | |
68 | |
68 | |
58 |