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 August 31st. Request your voucher.
Hello All,
I have had a look for this topic and can't find any discussion about it so i'm either the first to ask or my search paremeters are shocking.
Either way, I need some help! I have a requirement to compare a sum total to the same day in the previous week to provide a week on week variance. This is an amendment to an existing report in my business that was originaly aggregating numbers per week. Now the requirements is to look at these figures each day of the week but it still needs to be aggreagated for the week. This is where i am struggling as I can either get it to work for each day or for the week as a total. I've tried simply using DATEADD but this always results in an error (returns multiple results when it expects one).
My source data is an aggregated view that appears as follows:
This is linked with a DIM_DATE table with many columns but the ones used in my report are the Calendar_Date (for the relationship to the KPIs table shown above), [Start of Week], [FISCAL_WEEK], [WEEK_DAY_NAME].
The normal SUM DAX for the Gross Orders per day is fine (as you'd expect), but my WOW% comparison is being a pain:
My current DAX is as follows:
Solved! Go to Solution.
Update - i retried DATEDIFF this morning and it suddenly works the way I need it to. Very odd, i must have used an incorrect column in my original version of the DATEDIFF formula and not realised.
Update - i retried DATEDIFF this morning and it suddenly works the way I need it to. Very odd, i must have used an incorrect column in my original version of the DATEDIFF formula and not realised.
User | Count |
---|---|
12 | |
9 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
14 | |
9 | |
7 |