Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all, so i'm completely new to DAX/PowerBI and was looking for some guidence. I'm looking to get the sum of all sales throughout my company for last week(excluding sunday) and have the option to select specific days.
Any ideas?
Solved! Go to Solution.
In this scenario, you can create a calculate table to get the expected result. Assume you have a dataset as below.
Table2 = CALCULATETABLE ( Table1, WEEKNUM ( Table1[Date] ) = WEEKNUM ( TODAY () ) - 1, WEEKDAY ( Table1[Date] ) <> 1 )
WeekDay = FORMAT ( Table2[Date], "dddd" )
In this scenario, you can create a calculate table to get the expected result. Assume you have a dataset as below.
Table2 = CALCULATETABLE ( Table1, WEEKNUM ( Table1[Date] ) = WEEKNUM ( TODAY () ) - 1, WEEKDAY ( Table1[Date] ) <> 1 )
WeekDay = FORMAT ( Table2[Date], "dddd" )
That done the trick, thank you. Regarding the slicer, the days are in a mixed order i.e. Monday, Thursday, Tuesday, Friday etc. Is there anyway i can change this to the correct day format? Monday, Tuesday, Wednesday etc.
Also there was one more thing i was hoping for some advice on. Is there a way i can list the top selling products by day/week/year?.
Thanks again, Kris and Herbert 🙂
I would recommend to have a Date table or Date Filter table. You can achieve that by getting a DateStream from Azure Marketplace. See my post here from another post. Hope that helps!
http://community.powerbi.com/t5/Desktop/How-to-Sort-Months-Chronogically/m-p/50469#M20204
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |