The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Good afternoon.
I'm trying to generate a table that allows me to add up the values for the week and publish them to me on Monday of that week.
An example of the data
He should be able to add up the soda values that are part of week 32, and post them on day 1 of that week.
The same for week 33. I'm omitting additional data, but it still works as an example.
I don't know how to make this dax work
Hi ALL
Firstly ryan_mayu thank you for your solution!
And @Syndicate_Admin ,The main thing we've implemented here is a dynamic filter to ensure that your data for the first day of the week doesn't stack up and only shows the weekly soda totals.
sales filter =
VAR B=CALCULATE(SUM('Table'[Total Sales Accumulated]),FILTER(ALL('Table'),'Table'[Week]=MAX('Table'[Week])&&'Table'[Business]=SELECTEDVALUE('Table'[Business])))
RETURN
IF(
MAX('Table'[Day])=1&&MAX('Table'[Week])=SELECTEDVALUE('Table'[Week])&&MAX('Table'[Business])=SELECTEDVALUE('Table'[Business]),
B,
MAX('Table'[Total Sales Accumulated])
I hope my answer can solve your problem, if you have further questions, you can contact me at any time, I will be the first time to reply to you after receiving your message!
Hope it helps!
Best regards,
Community Support Team_ Tom Shen
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
maybe you can try this
calculate(sum(value),allexcept(table, [year},[mes],[Semana]))
Proud to be a Super User!
User | Count |
---|---|
65 | |
61 | |
60 | |
53 | |
30 |
User | Count |
---|---|
180 | |
88 | |
71 | |
48 | |
46 |